Span
A styled run of text inside a
Label's Label.Spans.Every unset visual property follows the label; 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 label.
Type: FontDesign?
FontSize
The run's font size in points, or NaN to follow the label.
Type: double
FontWeight
The run's font weight, or null to follow the label.
Type: FontWeight?
Strikethrough
Strikes the run through.
Type: bool
Text
The run's text.
Type: string
TextColor
The run's text color, or null to follow the label.
Type: Color?
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.