DriveListBox.Items[] 属性
定义
获取 DriveListBox 中包含的项。Gets the items that are contained in a DriveListBox.
重载
| Items |
获取 DriveListBox 中包含的项。Gets the items that are contained in a DriveListBox. |
| Items[Int32] |
获取 DriveListBox 中指定索引的项。Gets the item for a specified index in a DriveListBox. |
Items
获取 DriveListBox 中包含的项。Gets the items that are contained in a 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 中的项。A ListBox.ObjectCollection that represents the items in the DirListBox.
- 属性
注解
使用此属性可以检索当前显示在中的驱动器的列表 DriveListBox 。Use this property to retrieve a list of drives that are currently displayed in a DriveListBox.
备注
Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.
适用于
Items[Int32]
获取 DriveListBox 中指定索引的项。Gets the item for a specified index in a 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
列表中某个特定项的编号。The number of a specific item in the list.
属性值
一个 String,包含指定 Index 处的驱动器的名称。A String that contains the name of the drive at the specified Index.
- 属性
注解
使用此属性可以检索中驱动器的名称 DriveListBox 。Use this property to retrieve the name of a drive in a DriveListBox.
备注
Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.