共用方式為


RichEditBox.TextAlignment 屬性

定義

取得或設定值,指出 RichEditBox中的文字對齊方式。

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

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

屬性值

其中一個 TextAlignment 列舉值,指定文字的對齊方式。 預設值為 Left

適用於