TextBlock.IsHyphenationEnabled 屬性

定義

取得或設定值,此值會指出是否啟用或停用字詞的自動斷字。

public:
 property bool IsHyphenationEnabled { bool get(); void set(bool value); };
public bool IsHyphenationEnabled { get; set; }
member this.IsHyphenationEnabled : bool with get, set
Public Property IsHyphenationEnabled As Boolean

屬性值

Boolean

如果要啟用自動斷字,則為 true,否則為 false。 預設為 false

備註

自動字連字功能可讓您 TextBlock 根據目前的版面配置條件自動中斷和連字號字。 這可讓長字從一行開始,並繼續進行下一行,而且通常會在對齊文字中達到更平均的空白字元分佈。 文字會根據標準文法規則中斷和連字號。

相依性屬性資訊

識別碼欄位 IsHyphenationEnabledProperty
設定為 的中繼資料屬性 true AffectsMeasureAffectsRenderInherits

適用於

另請參閱