TextStyle
ChartForgeX.Typography
Defines fully resolved text styling shared by charts, topology, visual blocks, canvases, and image composition.
Inheritance
- object
- TextStyle
Usage
Explore 75 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 35
- Property LabelPlacementRequest.Style
- Property VisualFrame.LegendStyle
- Property VisualFrame.SubtitleStyle
- Property VisualFrame.TitleStyle
- Extension method TextStyle.Alignment
- Extension method TextStyle.Baseline
- Extension method TextStyle.Color
- Extension method TextStyle.Font
- Extension method TextStyle.FontSize
- Extension method TextStyle.Hinting
- Extension method TextStyle.LetterSpacing
- Extension method TextStyle.LineHeight
- Extension method TextStyle.OpenTypeLanguageTag
- Extension method TextStyle.Strikethrough
- Extension method TextStyle.StrikethroughStyle
- Extension method TextStyle.TextCase
- Extension method TextStyle.Underline
- Extension method TextStyle.UnderlineStyle
- Method TextStyle.Clone
- Method TextStyle.Create
- Method TextStyleFluent.Alignment
- Method TextStyleFluent.Baseline
- Method TextStyleFluent.Color
- Method TextStyleFluent.Font
- Method TextStyleFluent.FontSize
- Method TextStyleFluent.Hinting
- Method TextStyleFluent.LetterSpacing
- Method TextStyleFluent.LineHeight
- Method TextStyleFluent.OpenTypeLanguageTag
- Method TextStyleFluent.Strikethrough
- Method TextStyleFluent.StrikethroughStyle
- Method TextStyleFluent.TextCase
- Method TextStyleFluent.Underline
- Method TextStyleFluent.UnderlineStyle
- Method TextStyleOverride.Resolve
Accepted by parameters 40
- Method ImageComposition.DrawText
- Method ImageComposition.DrawTextHeader
- Method ImageComposition.DrawTextHeader
- Method ImageComposition.DrawTextLayout
- Constructor LabelPlacementRequest.LabelPlacementRequest
- Method LabelPlacementService.Measure
- Constructor VisualFrame.VisualFrame
- Constructor VisualFrame.VisualFrame
- Constructor VisualFrame.VisualFrame
- Method TextLayoutEngine.Layout
- Method TextLayoutEngine.Measure
- Extension method TextStyle.Alignment
- Extension method TextStyle.Baseline
- Extension method TextStyle.Color
- Extension method TextStyle.Font
- Extension method TextStyle.FontSize
- Extension method TextStyle.Hinting
- Extension method TextStyle.LetterSpacing
- Extension method TextStyle.LineHeight
- Extension method TextStyle.OpenTypeLanguageTag
- Extension method TextStyle.Strikethrough
- Extension method TextStyle.StrikethroughStyle
- Extension method TextStyle.TextCase
- Extension method TextStyle.Underline
- Extension method TextStyle.UnderlineStyle
- Method TextStyleFluent.Alignment
- Method TextStyleFluent.Baseline
- Method TextStyleFluent.Color
- Method TextStyleFluent.Font
- Method TextStyleFluent.FontSize
- Method TextStyleFluent.Hinting
- Method TextStyleFluent.LetterSpacing
- Method TextStyleFluent.LineHeight
- Method TextStyleFluent.OpenTypeLanguageTag
- Method TextStyleFluent.Strikethrough
- Method TextStyleFluent.StrikethroughStyle
- Method TextStyleFluent.TextCase
- Method TextStyleFluent.Underline
- Method TextStyleFluent.UnderlineStyle
- Method TextStyleOverride.Resolve
Constructors
public TextStyle() #Methods
Inherited Methods
Properties
public double LetterSpacing { get; set; } #Gets or sets additional logical pixels between eligible shaped groups. Zero preserves ordinary spacing.
public TextAlignment Alignment { get; set; } #Gets or sets horizontal alignment inside the layout region.
public double LineHeight { get; set; } #Gets or sets line height as a multiplier of the measured font height.
public bool Underline { get; set; } #Gets or sets a compatibility value that maps to a single solid underline.
public TextDecorationStyle UnderlineStyle { get; set; } #Gets or sets the underline pattern.
public bool Strikethrough { get; set; } #Gets or sets a compatibility value that maps to a single solid strikethrough.
public TextDecorationStyle StrikethroughStyle { get; set; } #Gets or sets the strikethrough pattern.
public TextBaseline Baseline { get; set; } #Gets or sets vertical baseline placement.
public TextCaseTransform TextCase { get; set; } #Gets or sets the display-time text-case transform.
public TextHinting Hinting { get; set; } #Gets or sets how raster output fits this text to the pixel grid. TextHinting.Auto (the default) snaps the baseline, x-height, and cap height of text at 12 output pixels and below to whole pixels without changing its width; TextHinting.None draws the outlines exactly. TextHinting.Full also fits and darkens narrow straight stems, retaining the same layout. SVG and HTML output leave hinting to the browser.
public string? OpenTypeLanguageTag { get; set; } #Gets or sets the OpenType language-system tag (for example, SRB or TRK). Null selects the font's default language system. Tags are case-sensitive and padded to four characters; an absent language in a font falls back to its default. This is not a culture name.
public double EffectiveFontSize { get; } #Gets the font size used to measure and render this style.
Extension Methods
public static TextStyle Alignment(TextStyle textStyle, TextAlignment value) #Sets TextStyle.Alignment: Gets or sets horizontal alignment inside the layout region.
Parameters
- textStyle ChartForgeX.Typography.TextStyle
- The instance.
- value ChartForgeX.Typography.TextAlignment
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Typography.TextStyle { Alignment = value }; textStyle.Alignment(value);public static TextStyle Baseline(TextStyle textStyle, TextBaseline value) #Sets TextStyle.Baseline: Gets or sets vertical baseline placement.
Parameters
- textStyle ChartForgeX.Typography.TextStyle
- The instance.
- value ChartForgeX.Typography.TextBaseline
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Typography.TextStyle { Baseline = value }; textStyle.Baseline(value);public static TextStyle Color(TextStyle textStyle, ChartColor value) #Sets TextStyle.Color: Gets or sets the text color.
Parameters
- textStyle ChartForgeX.Typography.TextStyle
- The instance.
- value ChartForgeX.Primitives.ChartColor
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Typography.TextStyle { Color = value }; textStyle.Color(value);public static TextStyle Font(TextStyle textStyle, FontSpec value) #Sets TextStyle.Font: Gets or sets the font selection.
Parameters
- textStyle ChartForgeX.Typography.TextStyle
- The instance.
- value ChartForgeX.Typography.FontSpec
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Typography.TextStyle { Font = value }; textStyle.Font(value);public static TextStyle Font(TextStyle textStyle, Action<FontSpec> configure) #Configures a copy of TextStyle.Font (a new one when not set) and assigns a copy of it once the callback returns, leaving the property unchanged when the callback throws: Gets or sets the font selection.
Parameters
- textStyle ChartForgeX.Typography.TextStyle
- The instance.
- configure System.Action<ChartForgeX.Typography.FontSpec>
- Configures the copy.
public static TextStyle FontSize(TextStyle textStyle, double value) #Sets TextStyle.FontSize: Gets or sets the font size in logical pixels.
Parameters
- textStyle ChartForgeX.Typography.TextStyle
- The instance.
- value double
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Typography.TextStyle { FontSize = value }; textStyle.FontSize(value);public static TextStyle Hinting(TextStyle textStyle, TextHinting value) #Sets TextStyle.Hinting: Gets or sets how raster output fits this text to the pixel grid. TextHinting.Auto (the default) snaps the baseline, x-height, and cap height of text at 12 output pixels and below to whole pixels without changing its width; TextHinting.None draws the outlines exactly. TextHinting.Full also fits and darkens narrow straight stems, retaining the same layout. SVG and HTML output leave hinting to the browser.
Parameters
- textStyle ChartForgeX.Typography.TextStyle
- The instance.
- value ChartForgeX.Typography.TextHinting
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Typography.TextStyle { Hinting = value }; textStyle.Hinting(value);public static TextStyle LetterSpacing(TextStyle textStyle, double value) #Sets TextStyle.LetterSpacing: Gets or sets additional logical pixels between eligible shaped groups. Zero preserves ordinary spacing.
Parameters
- textStyle ChartForgeX.Typography.TextStyle
- The instance.
- value double
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Typography.TextStyle { LetterSpacing = value }; textStyle.LetterSpacing(value);public static TextStyle LineHeight(TextStyle textStyle, double value) #Sets TextStyle.LineHeight: Gets or sets line height as a multiplier of the measured font height.
Parameters
- textStyle ChartForgeX.Typography.TextStyle
- The instance.
- value double
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Typography.TextStyle { LineHeight = value }; textStyle.LineHeight(value);public static TextStyle OpenTypeLanguageTag(TextStyle textStyle, string? value) #Sets TextStyle.OpenTypeLanguageTag: Gets or sets the OpenType language-system tag (for example, SRB or TRK). Null selects the font's default language system. Tags are case-sensitive and padded to four characters; an absent language in a font falls back to its default. This is not a culture name.
Parameters
- textStyle ChartForgeX.Typography.TextStyle
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Typography.TextStyle { OpenTypeLanguageTag = value }; textStyle.OpenTypeLanguageTag(value);public static TextStyle Strikethrough(TextStyle textStyle, bool value = true) #Sets TextStyle.Strikethrough: Gets or sets a compatibility value that maps to a single solid strikethrough.
Parameters
- textStyle ChartForgeX.Typography.TextStyle
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Typography.TextStyle { Strikethrough = value }; textStyle.Strikethrough(value);public static TextStyle StrikethroughStyle(TextStyle textStyle, TextDecorationStyle value) #Sets TextStyle.StrikethroughStyle: Gets or sets the strikethrough pattern.
Parameters
- textStyle ChartForgeX.Typography.TextStyle
- The instance.
- value ChartForgeX.Typography.TextDecorationStyle
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Typography.TextStyle { StrikethroughStyle = value }; textStyle.StrikethroughStyle(value);public static TextStyle TextCase(TextStyle textStyle, TextCaseTransform value) #Sets TextStyle.TextCase: Gets or sets the display-time text-case transform.
Parameters
- textStyle ChartForgeX.Typography.TextStyle
- The instance.
- value ChartForgeX.Typography.TextCaseTransform
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Typography.TextStyle { TextCase = value }; textStyle.TextCase(value);public static TextStyle Underline(TextStyle textStyle, bool value = true) #Sets TextStyle.Underline: Gets or sets a compatibility value that maps to a single solid underline.
Parameters
- textStyle ChartForgeX.Typography.TextStyle
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Typography.TextStyle { Underline = value }; textStyle.Underline(value);public static TextStyle UnderlineStyle(TextStyle textStyle, TextDecorationStyle value) #Sets TextStyle.UnderlineStyle: Gets or sets the underline pattern.
Parameters
- textStyle ChartForgeX.Typography.TextStyle
- The instance.
- value ChartForgeX.Typography.TextDecorationStyle
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Typography.TextStyle { UnderlineStyle = value }; textStyle.UnderlineStyle(value);