DirListBox.DirList[Int32] Property

Definition

Gets the items that are contained in a DirListBox control's list portion.

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

Parameters

Index
Int32

The number of a specific item in the list.

Property Value

A String that contains the directory and path for the specified item.

Attributes

Remarks

Use this property to access list items. The DirList property works together with the DirListCount and DirListIndex properties.

For a DirListBox control, the Index number sequence is based on the current directories and subdirectories when the control is created at run time.

Note

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. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

Applies to

See also