Share via


FileListBox.Items[] 属性

定义

获取 ListBox 中包含的项。

重载

Items

获取 ListBox 中包含的项。

Items[Int32]

获取 ListBox 中包含的项。

Items

获取 ListBox 中包含的项。

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

属性值

ListBox.ObjectCollection 表示 DirListBox 中的项。

属性

注解

不应将此属性用于 DirListBox 控件;尝试在集合中添加或删除目录可能会导致异常。 之所以提供它,只是因为 DirListBox 控件继承自 ListBox

注意

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic 2008。 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。

另请参阅

适用于

Items[Int32]

获取 ListBox 中包含的项。

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

一个表示项的索引的 Integer

属性值

一个 ListBox.ObjectCollection,表示 DirListBox 中的项。

属性

注解

不应将此属性用于 DirListBox 控件;尝试在集合中添加或删除目录可能会导致异常。 之所以提供它,只是因为 DirListBox 控件继承自 ListBox

注意

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic 2008。 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。

另请参阅

适用于