Redigera

Dela via


DriveListBox.Items[] Property

Definition

Gets the items that are contained in a DriveListBox.

Overloads

Items

Gets the items that are contained in a DriveListBox.

Items[Int32]

Gets the item for a specified index in a DriveListBox.

Items

Gets the items that are contained in a DriveListBox.

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

Property Value

A ListBox.ObjectCollection that represents the items in the DirListBox.

Attributes

Remarks

Use this property to retrieve a list of drives that are currently displayed in a DriveListBox.

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.

See also

Applies to

Items[Int32]

Gets the item for a specified index in a DriveListBox.

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

Parameters

Index
Int32

The number of a specific item in the list.

Property Value

A String that contains the name of the drive at the specified Index.

Attributes

Remarks

Use this property to retrieve the name of a drive in a DriveListBox.

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.

See also

Applies to