TabControl.TabPageCollection.Item[] 属性     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置集合中的选项卡页。
重载
| Item[Int32] | 
						 获取或设置集合中的 TabPage。  | 
        	
| Item[String] | 
						 获取带有来自集合的指定键的选项卡页。  | 
        	
Item[Int32]
获取或设置集合中的 TabPage。
public:
 virtual property System::Windows::Forms::TabPage ^ default[int] { System::Windows::Forms::TabPage ^ get(int index); void set(int index, System::Windows::Forms::TabPage ^ value); };
	public virtual System.Windows.Forms.TabPage this[int index] { get; set; }
	member this.Item(int) : System.Windows.Forms.TabPage with get, set
	Default Public Overridable Property Item(index As Integer) As TabPage
	参数
- index
 - Int32
 
要获取或设置的选项卡页的从零开始的索引。
属性值
指定索引处的 TabPage。
例外
              index 小于 0 或大于最大的可用索引。
另请参阅
适用于
Item[String]
获取带有来自集合的指定键的选项卡页。
public:
 virtual property System::Windows::Forms::TabPage ^ default[System::String ^] { System::Windows::Forms::TabPage ^ get(System::String ^ key); };
	public virtual System.Windows.Forms.TabPage this[string key] { get; }
	public virtual System.Windows.Forms.TabPage? this[string? key] { get; }
	member this.Item(string) : System.Windows.Forms.TabPage
	Default Public Overridable ReadOnly Property Item(key As String) As TabPage
	参数
- key
 - String
 
要检索的选项卡页的名称。
属性值
具有指定键的 TabPage。
注解
属性Name对应于 中 TabControl.TabPageCollection的 TabPage 键。
关键比较不区分大小写。 
              key如果 参数为 null 或为空字符串,Item[]则null返回 。