DriveListBox.Items[] プロパティ

定義

DriveListBoxに含まれる項目を取得します。

オーバーロード

名前 説明
Items

DriveListBoxに含まれる項目を取得します。

Items[Int32]

DriveListBox内の指定したインデックスの項目を取得します。

Items

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

プロパティ値

ListBox.ObjectCollection内の項目を表すDirListBox

属性

注釈

このプロパティを使用して、現在 DriveListBoxに表示されているドライブの一覧を取得します。

Note

Microsoft.VisualBasic.Compatibility.VB6名前空間の関数とオブジェクトは、Visual Basic 6.0 から Visual Basic にアップグレードするためのツールで使用するために用意されています。 ほとんどの場合、これらの関数とオブジェクトは、.NET Framework の他の名前空間で見つけることができる機能を複製します。 これらは、Visual Basic 6.0 コード モデルが .NET Framework の実装と大きく異なる場合にのみ必要です。

こちらもご覧ください

適用対象

Items[Int32]

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

パラメーター

Index
Int32

リスト内の特定の項目の数。

プロパティ値

指定したStringにあるドライブの名前を含むIndex

属性

注釈

このプロパティを使用して、 DriveListBox内のドライブの名前を取得します。

Note

Microsoft.VisualBasic.Compatibility.VB6名前空間の関数とオブジェクトは、Visual Basic 6.0 から Visual Basic にアップグレードするためのツールで使用するために用意されています。 ほとんどの場合、これらの関数とオブジェクトは、.NET Framework の他の名前空間で見つけることができる機能を複製します。 これらは、Visual Basic 6.0 コード モデルが .NET Framework の実装と大きく異なる場合にのみ必要です。

こちらもご覧ください

適用対象