DriveListBox.MaxLength 屬性

定義

取得或設定值,指定在 DriveListBox 中顯示文字的長度上限。

public:
 property int MaxLength { int get(); void set(int value); };
[System.ComponentModel.Browsable(false)]
public int MaxLength { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.MaxLength : int with get, set
Public Property MaxLength As Integer

屬性值

Integer 值,指定 Drive 屬性的長度上限。

屬性

備註

使用這個屬性來限制使用者可以輸入的 DriveListBox文字長度。

注意

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic。 在大多數情況下,這些函式和物件會複製在 .NET Framework 其他命名空間中可以找到的功能。 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。

適用於

另請參閱