FormattedText.MaxLineCount Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Show: