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

适用于