TextBlock.LineStackingStrategy Property

Definition

Gets or sets a value that indicates how a line box is determined for each line of text in the TextBlock.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.TextBlock.LineStackingStrategy.

public:
 property LineStackingStrategy LineStackingStrategy { LineStackingStrategy get(); void set(LineStackingStrategy value); };
LineStackingStrategy LineStackingStrategy();

void LineStackingStrategy(LineStackingStrategy value);
public LineStackingStrategy LineStackingStrategy { get; set; }
var lineStackingStrategy = textBlock.lineStackingStrategy;
textBlock.lineStackingStrategy = lineStackingStrategy;
Public Property LineStackingStrategy As LineStackingStrategy
<TextBlock LineStackingStrategy="BlockLineHeight"/>
-or-
<TextBlock LineStackingStrategy="MaxHeight"/>

Property Value

LineStackingStrategy

A value that indicates how a line box is determined for each line of text in the TextBlock. The default is MaxHeight.

Applies to