TextFormatter.FormatLine Method (TextSource, Int32, Double, TextParagraphProperties, TextLineBreak, TextRunCache)
Creates a TextLine that is used for formatting and displaying document content.
Assembly: PresentationCore (in PresentationCore.dll)
public abstract TextLine FormatLine( TextSource textSource, int firstCharIndex, double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak, TextRunCache textRunCache )
A TextSource object that represents the text source for the line.
An Int32 value that specifies the character index of the starting character in the line.
A Double value that specifies the width of the paragraph that the line fills.
A TextParagraphProperties object that represents paragraph properties, such as flow direction, alignment, or indentation.
A TextLineBreak object that specifies the text formatter state, in terms of where the previous line in the paragraph was broken by the text formatting process.
This method is used to improve performance in applications where the TextLine has significant performance implications.
Available since 3.0