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.ObjectCollectionADirListBox

属性

注解

使用此属性可检索当前显示在 a 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驱动器名称的 AIndex

属性

注解

使用此属性检索驱动器的名称 DriveListBox

注释

命名空间中的 Microsoft.VisualBasic.Compatibility.VB6 函数和对象由用于从 Visual Basic 6.0 升级到 Visual Basic 的工具使用。 在大多数情况下,这些函数和对象重复了可在 .NET Framework 中的其他命名空间中找到的功能。 仅当 Visual Basic 6.0 代码模型与 .NET Framework 实现明显不同时,它们才是必需的。

另请参阅

适用于