Initializes a new instance of the FormattedText class.
The text to be formatted.
The font.
The maximum text width.
The maximum text height.
The flow direction.
The horizontal text alignment.
The vertical text alignment.
The text trimming.
Gets or sets the text flow, which can be different among certain cultures.
Gets or sets the font that is used to render the text.
Gets or sets the height of the boundaries and therefore, how many lines of text can be rendered. The specified text
will be wrapped until the specified maxTextHeight
is reached. The last line will then either be cut off or rendered
will ellipsis, depending on the specified textTrimming
.
Determines how text is arranged horizontally inside the boundaries.
Gets or sets the text to be formatted. The text can include line breaks.
Determines how text is treated, that doesn't fit into the specified boundaries.
Determines how text is arranged vertically inside the boundaries.
Gets or sets the width of the boundaries and therefore, after how many millimeters the text is supposed to wrap.
Measures the formatted text and returns a TextMeasurements object that contains information about the final size and layout.
Returns the formatted text that is defined by the specified description.
A formatted text description.
Measures the specified formatted text and returns a TextMeasurements object that contains information about the final size and layout.
Generated using TypeDoc
Describes a text block with a certain style and size, in which the text can be arranged.