AccessText.LineStackingStrategy Property

Definition

Gets or sets how the LineHeight property is enforced.

C#
public System.Windows.LineStackingStrategy LineStackingStrategy { get; set; }

Property Value

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

Remarks

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.

Dependency Property Information

Item Value
Identifier field LineStackingStrategyProperty
Metadata properties set to true AffectsMeasure, AffectsRender, Inherits

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10