API Reference
TextStyleOverride
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.
Returned or exposed by 27
- Property ChartGrid.SubtitleStyle
- Property ChartGrid.TitleStyle
- Method ChartOptions.GetTextStyle
- Property ChartOptions.AxisTitleStyle
- Property ChartOptions.DataLabelStyle
- Property ChartOptions.LegendStyle
- Property ChartOptions.SubtitleStyle
- Property ChartOptions.TickLabelStyle
- Property ChartOptions.TitleStyle
- Property ChartSeries.DataLabelStyle
- Property ChartSeries.PointDataLabelStyles
- Property ChartSunburstOptions.SecondaryLabelStyle
- Method TextStyleOverride.Clone
- Method TextStyleOverride.WithBaseline
- Method TextStyleOverride.WithColor
- Method TextStyleOverride.WithColorPalette
- Method TextStyleOverride.WithFontFamily
- Method TextStyleOverride.WithFontSize
- Method TextStyleOverride.WithItalic
- Method TextStyleOverride.WithOpenTypeLanguage
- Method TextStyleOverride.WithStrikethrough
- Method TextStyleOverride.WithSubscript
- Method TextStyleOverride.WithSuperscript
- Method TextStyleOverride.WithTextCase
- Method TextStyleOverride.WithUnderline
- Method TextStyleOverride.WithVariation
- Method TextStyleOverride.WithWeight
Accepted by parameters 11
- Method Chart.ConfigureAxisTitleStyle
- Method Chart.ConfigureDataLabelStyle
- Method Chart.ConfigureLegendStyle
- Method Chart.ConfigureSubtitleStyle
- Method Chart.ConfigureTextStyle
- Method Chart.ConfigureTickLabelStyle
- Method Chart.ConfigureTitleStyle
- Method ChartGrid.ConfigureSubtitleStyle
- Method ChartGrid.ConfigureTitleStyle
- Method ChartSeries.ConfigureDataLabelStyle
- Method ChartSeries.ConfigurePointDataLabelStyle
Constructors
public TextStyleOverride() #Methods
public TextStyleOverride Clone() #TextStyleOverrideCreates an independent copy of the optional typography values.
public TextStyle Resolve(TextStyle fallback) #TextStyleResolves these overrides over a complete text style without mutating the fallback.
Parameters
- fallback ChartForgeX.Typography.TextStyle
public String TransformText(String text, CultureInfo? culture = null) #StringTransforms text according to this override.
Parameters
- text System.String
- culture System.Globalization.CultureInfo? = null
public TextStyleOverride WithBaseline(TextBaseline baseline) #TextStyleOverrideSets subscript or superscript placement.
Parameters
- baseline ChartForgeX.Typography.TextBaseline
public TextStyleOverride WithColorPalette(Int32 index) #TextStyleOverrideSelects a colour-font palette for this text role.
Parameters
- index System.Int32
public TextStyleOverride WithFontFamily(String fontFamily) #TextStyleOverrideSets the CSS font-family.
Parameters
- fontFamily System.String
public TextStyleOverride WithFontSize(Double fontSize) #TextStyleOverrideSets the font size.
Parameters
- fontSize System.Double
public TextStyleOverride WithItalic(Boolean enabled = true) #TextStyleOverrideSets italic text.
Parameters
- enabled System.Boolean = true
public TextStyleOverride WithOpenTypeLanguage(String languageTag) #TextStyleOverrideSets the font's language system; normal restores its default language system.
Parameters
- languageTag System.String
public TextStyleOverride WithStrikethrough(Boolean enabled = true) #TextStyleOverrideSets a single solid strikethrough.
Parameters
- enabled System.Boolean = true
public TextStyleOverride WithStrikethrough(TextDecorationStyle style) #TextStyleOverrideSets the strikethrough pattern.
Parameters
- style ChartForgeX.Typography.TextDecorationStyle
public TextStyleOverride WithTextCase(TextCaseTransform textCase) #TextStyleOverrideSets a display-time casing transform.
Parameters
- textCase ChartForgeX.Typography.TextCaseTransform
public TextStyleOverride WithUnderline(Boolean enabled = true) #TextStyleOverrideSets underlined text.
Parameters
- enabled System.Boolean = true
public TextStyleOverride WithUnderline(TextDecorationStyle style) #TextStyleOverrideSets the underline pattern.
Parameters
- style ChartForgeX.Typography.TextDecorationStyle
public TextStyleOverride WithVariation(String tag, Double value) #TextStyleOverrideSets one OpenType variation axis in design units.
Parameters
- tag System.String
- value System.Double
public TextStyleOverride WithWeight(String fontWeight) #TextStyleOverrideSets the CSS font-weight.
Parameters
- fontWeight System.String
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
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.