Every unset visual property follows the containing control; a set one overrides it for this run alone.
- Kind: Class
- Namespace: SkeleKit
Constructors
Creates a span.
| Parameter | Summary |
|---|---|
string text | The run's text. |
Properties
Bold
Shorthand for a bold FontWeight.
Type: bool
FontDesign
The run's font design, or null to follow the containing control.
Type: FontDesign?
FontSize
The run's base font size in points, scaled by Dynamic Type, or NaN to follow its text style or the containing control.
Type: double
FontWeight
The run's font weight, or null to follow the containing control.
Type: FontWeight?
MaxFontSize
The largest point size Dynamic Type may produce, or NaN to follow the containing control.
Set this and
MinFontSizeto the same value for a fixed-size run.
Type: double
MinFontSize
The smallest point size Dynamic Type may produce, or NaN to follow the containing control.
Type: double
Strikethrough
Strikes the run through.
Type: bool
Text
The run's text.
Type: string
TextAlignment
The alignment of the run's paragraph, or null to follow the containing control.
Paragraph alignment applies to the complete paragraph. Use this override on a span that covers the whole paragraph, including its terminating newline when one follows.
Type: TextAlignment?
TextColor
The run's text color, or null to follow the containing control.
Type: Color?
TextStyle
The run's Dynamic Type text style, or null to follow the containing control.
An explicit
FontSizetakes precedence over this style.
Type: TextStyle?
Underline
Underlines the run.
Type: bool
Operators
Implicit Span(string)
Wraps a plain string as an unstyled span, so string literals sit beside styled runs in a list.
| Parameter | Summary |
|---|---|
string text | The run's text. |
Returns
Span: An unstyled span containing the text.