Block.TextAlignment 屬性

定義

取得或設定文字內容的水準對齊方式。

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

void TextAlignment(TextAlignment value);
public TextAlignment TextAlignment { get; set; }
var textAlignment = block.textAlignment;
block.textAlignment = textAlignment;
Public Property TextAlignment As TextAlignment
<Paragraph TextAlignment="textAlignmentMemberName"/>

屬性值

文字內容的水準對齊方式。 預設值為 Left

備註

BlockParagraph的基類。 Paragraph是唯一可以在 Windows 執行階段 XAML 中設定 TextAlignment 值的元素,除非您根據Block建立自訂類別。

適用於

另請參閱