Muokkaa

Jaa


AccessText.LineStackingStrategy Property

Definition

Gets or sets how the LineHeight property is enforced.

public:
 property System::Windows::LineStackingStrategy LineStackingStrategy { System::Windows::LineStackingStrategy get(); void set(System::Windows::LineStackingStrategy value); };
public System.Windows.LineStackingStrategy LineStackingStrategy { get; set; }
member this.LineStackingStrategy : System.Windows.LineStackingStrategy with get, set
Public Property LineStackingStrategy As LineStackingStrategy

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