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

属性

注解

此属性不应用于 DirListBox 控件;尝试添加或删除集合中的目录可能会导致异常。 仅因为 DirListBox 控件继承自 ListBox.

注释

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

另请参阅

适用于