FormattedText Constructor
Construct a FormattedText object.
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public FormattedText(
string textToFormat,
CultureInfo culture,
FlowDirection flowDirection,
Typeface typeface,
double emSize,
IBrush? foreground
)
Public Sub New (
textToFormat As String,
culture As CultureInfo,
flowDirection As FlowDirection,
typeface As Typeface,
emSize As Double,
foreground As IBrush
)
new :
textToFormat : string *
culture : CultureInfo *
flowDirection : FlowDirection *
typeface : Typeface *
emSize : float *
foreground : IBrush -> FormattedText
Parameters
- String
- String of text to be displayed.
- CultureInfo
- Culture of text.
- FlowDirection
- Flow direction of text.
- Typeface
- Type face used to display text.
- Double
- Font em size in visual units (1/96 of an inch).
- IBrush
- Foreground brush used to render text.