LineStackingStrategy Property

AccessText.LineStackingStrategy Property


Gets or sets how the LineHeight property is enforced.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public LineStackingStrategy LineStackingStrategy { get; set; }

Property Value

Type: System.Windows.LineStackingStrategy

A LineStackingStrategy value that determines the behavior of the LineHeight property.

LineHeight properties control the line box that is reserved for text. LineHeight allows users to set a suggestion of height. LineStackingStrategy defines how the LineHeight is enforced.

You can set the LineStackingStrategy property to MaxHeight or BlockLineHeight.

  • The MaxHeight value increases the line to the tallest object in the line. It ensures that no item overdraws or is trimmed.

  • The BlockLineHeight value enforces a LineHeight value on all lines. If the LineHeight property does not provide sufficient space, the text is either overdrawn or trimmed. Which occurs depends on the ClipProperty value.

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