FileListBox.Items[] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得包含在 的 ListBox項目。
多載
| 名稱 | Description |
|---|---|
| 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
屬性值
A ListBox.ObjectCollection 代表 中項目 DirListBox。
- 屬性
備註
此屬性不應用於 DirListBox 控制;嘗試新增或移除目錄可能會產生例外。 之所以提供,是因為 DirListBox 控制源自 ListBox。
Note
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
an Integer 代表該項目的索引。
屬性值
A ListBox.ObjectCollection 代表 中的項目 DirListBox。
- 屬性
備註
此屬性不應用於 DirListBox 控制;嘗試新增或移除目錄可能會產生例外。 之所以提供,是因為 DirListBox 控制源自 ListBox。
Note
Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式與物件,供工具從 Visual Basic 6.0 升級至 Visual Basic 2008 使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。