TextBlock.LineStackingStrategy 属性

定义

获取或设置一个值,该值指示如何为 TextBlock 中的每行文本确定行框。

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"/>

属性值

一个 值,该值指示如何为 TextBlock 中的每一行文本确定行框。 默认值为 MaxHeight

适用于