DirListBox.DirList[Int32] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得包含在 DirListBox 控制項之清單部分中的項目。
public:
property System::String ^ DirList[int] { System::String ^ get(int Index); };
[System.ComponentModel.Browsable(false)]
public string DirList[int Index] { get; }
[<System.ComponentModel.Browsable(false)>]
member this.DirList(int) : string
Public ReadOnly Property DirList(Index As Integer) As String
參數
- Index
- Int32
清單中的特定項目數。
屬性值
String
,包含指定項目的目錄和路徑。
- 屬性
備註
使用這個屬性來存取清單專案。 屬性DirList
可與和 DirListIndex 屬性搭配DirListCount運作。
DirListBox對於控件,當控件在運行時間建立控制項時,Index
數位序列是以目前目錄和子目錄為基礎。
注意
Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic。 在大多數情況下,這些函式和物件會複製在 .NET Framework 其他命名空間中可以找到的功能。 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應