Share via


DriveListBox.Items[] 屬性

定義

取得 DriveListBox 中包含的項目。

多載

Items

取得 DriveListBox 中包含的項目。

Items[Int32]

取得 DriveListBox 中指定索引的項目。

Items

取得 DriveListBox 中包含的項目。

public:
 property System::Windows::Forms::ComboBox::ObjectCollection ^ Items { System::Windows::Forms::ComboBox::ObjectCollection ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.ComboBox.ObjectCollection Items { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Items : System.Windows.Forms.ComboBox.ObjectCollection
Public ReadOnly Property Items As ComboBox.ObjectCollection

屬性值

ListBox.ObjectCollection,表示 DirListBox 中的項目。

屬性

備註

使用這個屬性來擷取目前顯示在中的 DriveListBox磁碟驅動器清單。

注意

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

另請參閱

適用於

Items[Int32]

取得 DriveListBox 中指定索引的項目。

public:
 property System::String ^ Items[int] { System::String ^ get(int Index); };
[System.ComponentModel.Browsable(false)]
public string Items[int Index] { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Items(int) : string
Public ReadOnly Property Items(Index As Integer) As String

參數

Index
Int32

清單中的特定項目數。

屬性值

String,包含指定的 Index 中的磁碟機名稱。

屬性

備註

使用這個屬性來擷取 中 DriveListBox磁碟驅動器的名稱。

注意

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

另請參閱

適用於