共用方式為


TextBox.TextAlignment 屬性

定義

取得或設定文字在文字方塊中水準對齊的方式。

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

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

屬性值

其中一個 TextAlignment 列舉值。 預設值為 Left

適用於