RichTextBlockOverflow.MaxLines property

Applies to Windows and Windows Phone

Gets or sets the maximum lines of text shown in the RichTextBlockOverflow.

Syntax


public int MaxLines { get; set; }


<RichTextBlockOverflow MaxLines="int"/>

Property value

Type: System.Int32 [.NET] | int32 [C++]

The maximum lines of text shown in the RichTextBlockOverflow. The default is 0, which is a special value that represents "Auto" behavior. The value cannot be negative.

Remarks

Use the MaxLines property to specify the maximum lines of text shown in a text block. The text control will adjust it’s height to show no more than the specified number of lines, regardless of the font size, font style, or text length.

Negative integer values are invalid, and will cause a run-time exception.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

RichTextBlockOverflow

 

 

Show:
© 2014 Microsoft