Share via


DirListBox.DirListIndex プロパティ

定義

DirListBox コントロール内で現在選択されている項目のインデックスを取得または設定します。

public:
 property int DirListIndex { int get(); void set(int value); };
[System.ComponentModel.Browsable(false)]
public int DirListIndex { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.DirListIndex : int with get, set
Public Property DirListIndex As Integer

プロパティ値

現在選択されている項目のインデックスを表す Integer

属性

注釈

現在選択されているディレクトリのインデックスを取得するには、このプロパティを使用します。 プロパティはDirListIndex、 プロパティと プロパティとDirListCountDirList[]連携して動作します。

instance.DirList(instance.DirListIndex) は、現在選択されているディレクトリの文字列を返します。

注意

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

適用対象

こちらもご覧ください