RichTextBlock.TextAlignment 属性

定义

获取或设置一个值,该值指示文本在 RichTextBlock 中的对齐方式。

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

void TextAlignment(TextAlignment value);
public TextAlignment TextAlignment { get; set; }
var textAlignment = richTextBlock.textAlignment;
richTextBlock.textAlignment = textAlignment;
Public Property TextAlignment As TextAlignment
<RichTextBlock TextAlignment="textAlignmentValue"/>

属性值

指示文本对齐方式的 TextAlignment 枚举值之一。 默认值为 Left

适用于