コレクション内の TabPage を取得または設定します。
[C#] C# では、このプロパティは TabControl.TabPageCollection クラスのインデクサになります。
Public Overridable Default Property Item( _
ByVal index As Integer _) As TabPage
[C#]
public virtual TabPage this[intindex] {get; set;}
[C++]
public: __property virtual TabPage* get_Item(intindex);public: __property virtual void set_Item(intindex, TabPage*);
[JScript]
returnValue = TabPageCollectionObject.Item(index);TabPageCollectionObject.Item(index) = returnValue;またはreturnValue = TabPageCollectionObject(index);TabPageCollectionObject(index) = returnValue;
[JScript] JScript では、この型で定義されている既定のインデックス プロパティを使用することができます。しかし、独自のインデックス プロパティを明示的に定義することはできません。ただし、このクラスの expando 属性を指定すると、既定のインデックス プロパティが提供されます。提供されるインデックス プロパティの型は Object 型であり、インデックス型は String になります。
引数 [JScript]
- index
取得または設定するタブ ページの 0 から始まるインデックス番号。
パラメータ [Visual Basic, C#, C++]
- index
取得または設定するタブ ページの 0 から始まるインデックス番号。
プロパティ値
指定したインデックス位置にある TabPage 。
例外
例外の種類 | 条件 |
---|---|
ArgumentException | 値が TabPage ではありません。 |
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
TabControl.TabPageCollection クラス | TabControl.TabPageCollection メンバ | System.Windows.Forms 名前空間 | Add | Contains | GetEnumerator | IndexOf | RemoveAt