InputPanel for WinForms帮助文档
TextAlign 属性 (InputTextBox)






Gets or sets how text is aligned in the InputTextBox.
语法
'声明
 
<System.ComponentModel.DefaultValueAttribute()>
<C1DescriptionAttribute("获取或设置文本如何在InputTextBox中对齐。")>
<C1CategoryAttribute("外观")>
<System.ComponentModel.LocalizableAttribute(True)>
Public Property TextAlign As System.Windows.Forms.HorizontalAlignment
'用法
 
Dim instance As InputTextBox
Dim value As System.Windows.Forms.HorizontalAlignment
 
instance.TextAlign = value
 
value = instance.TextAlign
[System.ComponentModel.DefaultValue()]
[C1Description("获取或设置文本如何在InputTextBox中对齐。")]
[C1Category("外观")]
[System.ComponentModel.Localizable(true)]
public System.Windows.Forms.HorizontalAlignment TextAlign {get; set;}
public read-write property TextAlign: System.Windows.Forms.HorizontalAlignment; 
System.ComponentModel.DefaultValueAttribute()
C1DescriptionAttribute("获取或设置文本如何在InputTextBox中对齐。")
C1CategoryAttribute("外观")
System.ComponentModel.LocalizableAttribute()
public function get,set TextAlign : System.Windows.Forms.HorizontalAlignment
[System.ComponentModel.DefaultValue()]
[C1Description("获取或设置文本如何在InputTextBox中对齐。")]
[C1Category("外观")]
[System.ComponentModel.Localizable(true)]
public: __property System.Windows.Forms.HorizontalAlignment get_TextAlign();
public: __property void set_TextAlign( 
   System.Windows.Forms.HorizontalAlignment value
);
[System.ComponentModel.DefaultValue()]
[C1Description("获取或设置文本如何在InputTextBox中对齐。")]
[C1Category("外观")]
[System.ComponentModel.Localizable(true)]
public:
property System.Windows.Forms.HorizontalAlignment TextAlign {
   System.Windows.Forms.HorizontalAlignment get();
   void set (    System.Windows.Forms.HorizontalAlignment value);
}
需求

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

请参见

引用

InputTextBox 类
InputTextBox 成员

Send Feedback