共用方式為


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

適用於