InputPanel for WinForms帮助文档
Width 属性 (InputComponent)






Gets or sets the width of the component. Set to -1 to have the component calculate it automatically.
语法
'声明
 
<System.ComponentModel.LocalizableAttribute(True)>
<C1CategoryAttribute("布局")>
<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.Repaint)>
<C1DescriptionAttribute("该组件的宽度。设置为-1表示组件自动计算该置。")>
Public Overridable Property Width As System.Integer
'用法
 
Dim instance As InputComponent
Dim value As System.Integer
 
instance.Width = value
 
value = instance.Width
[System.ComponentModel.Localizable(true)]
[C1Category("布局")]
[System.ComponentModel.RefreshProperties(RefreshProperties.Repaint)]
[C1Description("该组件的宽度。设置为-1表示组件自动计算该置。")]
public virtual System.int Width {get; set;}
public read-write property Width: System.Integer; virtual; 
System.ComponentModel.LocalizableAttribute()
C1CategoryAttribute("布局")
System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.Repaint)
C1DescriptionAttribute("该组件的宽度。设置为-1表示组件自动计算该置。")
public function get,set Width : System.int
[System.ComponentModel.Localizable(true)]
[C1Category("布局")]
[System.ComponentModel.RefreshProperties(RefreshProperties.Repaint)]
[C1Description("该组件的宽度。设置为-1表示组件自动计算该置。")]
public: __property virtual System.int get_Width();
public: __property virtual void set_Width( 
   System.int value
);
[System.ComponentModel.Localizable(true)]
[C1Category("布局")]
[System.ComponentModel.RefreshProperties(RefreshProperties.Repaint)]
[C1Description("该组件的宽度。设置为-1表示组件自动计算该置。")]
public:
virtual property System.int Width {
   System.int get();
   void set (    System.int 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

请参见

引用

InputComponent 类
InputComponent 成员

Send Feedback