TextDescription#
public sealed record TextDescription(string Content, FontResource Font, float Size = 0.15f, string Color = "#FFFFFF", float Width = 0, string Alignment = "Left", float LineSpacing = 1.2f)Record properties#
| Property | Type | Access | Constructor default |
|---|---|---|---|
Content | string | get; init; | required |
Font | FontResource | get; init; | required |
Size | float | get; init; | 0.15f |
Color | string | get; init; | "#FFFFFF" |
Width | float | get; init; | 0 |
Alignment | string | get; init; | "Left" |
LineSpacing | float | get; init; | 1.2f |
Members: Style
Style#
public Style2D? Style { get; init; }The shared Style 2D the signed-distance glyphs draw with: fill, gradient, opacity, stroke, glow and shadow. Shape corner radii do not change glyph outlines. Null uses the label's flat colour.
Related types#
Source#
- TextDescription.cs