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






Gets or sets the maximum number of characters allowed in the component.
语法
'声明
 
<System.ComponentModel.LocalizableAttribute(True)>
<System.ComponentModel.DefaultValueAttribute()>
<C1CategoryAttribute("行为")>
<C1DescriptionAttribute("组件中允许的最大字符数。")>
Public Property MaxLength As System.Integer
'用法
 
Dim instance As InputTextBox
Dim value As System.Integer
 
instance.MaxLength = value
 
value = instance.MaxLength
[System.ComponentModel.Localizable(true)]
[System.ComponentModel.DefaultValue()]
[C1Category("行为")]
[C1Description("组件中允许的最大字符数。")]
public System.int MaxLength {get; set;}
public read-write property MaxLength: System.Integer; 
System.ComponentModel.LocalizableAttribute()
System.ComponentModel.DefaultValueAttribute()
C1CategoryAttribute("行为")
C1DescriptionAttribute("组件中允许的最大字符数。")
public function get,set MaxLength : System.int
[System.ComponentModel.Localizable(true)]
[System.ComponentModel.DefaultValue()]
[C1Category("行为")]
[C1Description("组件中允许的最大字符数。")]
public: __property System.int get_MaxLength();
public: __property void set_MaxLength( 
   System.int value
);
[System.ComponentModel.Localizable(true)]
[System.ComponentModel.DefaultValue()]
[C1Category("行为")]
[C1Description("组件中允许的最大字符数。")]
public:
property System.int MaxLength {
   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

请参见

引用

InputTextBox 类
InputTextBox 成员

Send Feedback