Project

ChartForgeX

Render deterministic charts, dashboards, topology, hierarchy, and report visuals directly from .NET.

Stars 47
Forks 2
NuGet downloads 75,067
Release ChartForgeX-v2.0.0
Language: HTML Updated: 2026-10-12

API Reference

Class

TextStyleOverride

Namespace ChartForgeX.Typography
Assembly ChartForgeX
Modifiers sealed

Defines optional overrides that can be resolved over a complete TextStyle.

Inheritance

  • Object
  • TextStyleOverride

Usage

Explore 38 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 11

Constructors

public TextStyleOverride() #

Methods

public TextStyleOverride Clone() #
Returns: TextStyleOverride

Creates an independent copy of the optional typography values.

public TextStyle Resolve(TextStyle fallback) #
Returns: TextStyle

Resolves these overrides over a complete text style without mutating the fallback.

Parameters

fallback ChartForgeX.Typography.TextStyle requiredposition: 0
public String TransformText(String text, CultureInfo? culture = null) #
Returns: String

Transforms text according to this override.

Parameters

text System.String requiredposition: 0
culture System.Globalization.CultureInfo? = null optionalposition: 1
public TextStyleOverride WithBaseline(TextBaseline baseline) #
Returns: TextStyleOverride

Sets subscript or superscript placement.

Parameters

baseline ChartForgeX.Typography.TextBaseline requiredposition: 0
WithColor 2 overloads
public TextStyleOverride WithColor(ChartColor color) #
Returns: TextStyleOverride

Sets the text color.

Parameters

color ChartForgeX.Primitives.ChartColor requiredposition: 0
public TextStyleOverride WithColor(String hex) #
Returns: TextStyleOverride

Sets the text color from hexadecimal notation.

Parameters

hex System.String requiredposition: 0
public TextStyleOverride WithColorPalette(Int32 index) #
Returns: TextStyleOverride

Selects a colour-font palette for this text role.

Parameters

index System.Int32 requiredposition: 0
public TextStyleOverride WithFontFamily(String fontFamily) #
Returns: TextStyleOverride

Sets the CSS font-family.

Parameters

fontFamily System.String requiredposition: 0
public TextStyleOverride WithFontSize(Double fontSize) #
Returns: TextStyleOverride

Sets the font size.

Parameters

fontSize System.Double requiredposition: 0
public TextStyleOverride WithItalic(Boolean enabled = true) #
Returns: TextStyleOverride

Sets italic text.

Parameters

enabled System.Boolean = true optionalposition: 0
public TextStyleOverride WithOpenTypeLanguage(String languageTag) #
Returns: TextStyleOverride

Sets the font's language system; normal restores its default language system.

Parameters

languageTag System.String requiredposition: 0
WithStrikethrough 2 overloads
public TextStyleOverride WithStrikethrough(Boolean enabled = true) #
Returns: TextStyleOverride

Sets a single solid strikethrough.

Parameters

enabled System.Boolean = true optionalposition: 0
public TextStyleOverride WithStrikethrough(TextDecorationStyle style) #
Returns: TextStyleOverride

Sets the strikethrough pattern.

Parameters

style ChartForgeX.Typography.TextDecorationStyle requiredposition: 0
public TextStyleOverride WithSubscript() #
Returns: TextStyleOverride

Sets subscript placement.

public TextStyleOverride WithSuperscript() #
Returns: TextStyleOverride

Sets superscript placement.

public TextStyleOverride WithTextCase(TextCaseTransform textCase) #
Returns: TextStyleOverride

Sets a display-time casing transform.

Parameters

textCase ChartForgeX.Typography.TextCaseTransform requiredposition: 0
WithUnderline 2 overloads
public TextStyleOverride WithUnderline(Boolean enabled = true) #
Returns: TextStyleOverride

Sets underlined text.

Parameters

enabled System.Boolean = true optionalposition: 0
public TextStyleOverride WithUnderline(TextDecorationStyle style) #
Returns: TextStyleOverride

Sets the underline pattern.

Parameters

style ChartForgeX.Typography.TextDecorationStyle requiredposition: 0
public TextStyleOverride WithVariation(String tag, Double value) #
Returns: TextStyleOverride

Sets one OpenType variation axis in design units.

Parameters

tag System.String requiredposition: 0
value System.Double requiredposition: 1
public TextStyleOverride WithWeight(String fontWeight) #
Returns: TextStyleOverride

Sets the CSS font-weight.

Parameters

fontWeight System.String requiredposition: 0

Properties

public Int32? ColorPaletteIndex { get; set; } #

Gets or sets an optional zero-based CPAL palette. Null inherits; zero resets to the default.

public FontVariationSettings? Variations { get; set; } #

Gets or sets explicit OpenType axes. Null inherits; Default restores the font's default instance.

public ChartColor? Color { get; set; } #

Gets or sets the optional text color override.

public String? FontFamily { get; set; } #

Gets or sets the optional CSS font-family override.

public String? FontWeight { get; set; } #

Gets or sets the optional CSS font-weight override.

public String? OpenTypeLanguageTag { get; set; } #

Gets or sets the optional OpenType language-system tag, such as SRB or TRK. A null override retains the fallback style's language; normal selects the font's default.

public Double? FontSize { get; set; } #

Gets or sets the optional font size override.

public Boolean Italic { get; set; } #

Gets or sets a value indicating whether text is italic.

public Boolean Underline { get; set; } #

Gets or sets a value indicating whether text is underlined.

public TextDecorationStyle? UnderlineStyle { get; set; } #

Gets or sets an optional underline pattern. None explicitly disables a fallback underline.

public Boolean Strikethrough { get; set; } #

Gets or sets a compatibility value that enables a single solid strikethrough.

public TextDecorationStyle? StrikethroughStyle { get; set; } #

Gets or sets an optional strikethrough pattern. None explicitly disables a fallback strike.

public TextBaseline? Baseline { get; set; } #

Gets or sets optional subscript or superscript placement.

public TextCaseTransform? TextCase { get; set; } #

Gets or sets an optional display-time casing transform.

public Boolean HasOverrides { get; } #

Gets a value indicating whether this instance contains explicit overrides.