TextFormatterFormatLine Method

Formats a text line.

Definition

Namespace: Avalonia.Media.TextFormatting
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public abstract TextLine? FormatLine(
	ITextSource textSource,
	int firstTextSourceIndex,
	double paragraphWidth,
	TextParagraphProperties paragraphProperties,
	TextLineBreak? previousLineBreak = null
)

Parameters

textSource  ITextSource
The text source.
firstTextSourceIndex  Int32
The first character index to start the text line from.
paragraphWidth  Double
A Double value that specifies the width of the paragraph that the line fills.
paragraphProperties  TextParagraphProperties
A TextParagraphProperties value that represents paragraph properties, such as TextWrapping, TextAlignment, or TextStyle.
previousLineBreak  TextLineBreak  (Optional)
A TextLineBreak value that specifies the text formatter state, in terms of where the previous line in the paragraph was broken by the text formatting process.

Return Value

TextLine
The formatted line.

See Also