Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FormattedText.MaxLineCount Property


Gets or sets the maximum number of lines to display. Text exceeding the MaxLineCount will not be displayed.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public int MaxLineCount { get; set; }

Property Value

Type: System.Int32

The maximum number of lines to display.

Use the Trimming property to control how omitted text is represented when the text exceeds the MaxLineCount.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft