ComboBox.MaxLength 屬性

定義

取得或設定使用者可以在 ComboBox 中輸入的字元數。Gets or sets the number of characters a user can type into the ComboBox.

public:
 property int MaxLength { int get(); void set(int value); };
public int MaxLength { get; set; }
member this.MaxLength : int with get, set
Public Property MaxLength As Integer

屬性值

使用者可以輸入的最大字元數。The maximum number of characters a user can enter. 小於零的值會重設為零 (亦即預設值)。Values of less than zero are reset to zero, which is the default value.

適用於