StatusBar.StatusBarPanelCollection.Item[] 屬性

定義

取得或設定此集合中的項目。

多載

Item[String]

從集合中取得具有指定索引鍵的項目。

Item[Int32]

取得或設定在指定索引處的 StatusBarPanel

Item[String]

從集合中取得具有指定索引鍵的項目。

public:
 virtual property System::Windows::Forms::StatusBarPanel ^ default[System::String ^] { System::Windows::Forms::StatusBarPanel ^ get(System::String ^ key); };
public virtual System.Windows.Forms.StatusBarPanel this[string key] { get; }
member this.Item(string) : System.Windows.Forms.StatusBarPanel
Default Public Overridable ReadOnly Property Item(key As String) As StatusBarPanel

參數

key
String

要從集合中擷取的項目名稱。

屬性值

具有指定金鑰的 StatusBarPanel

備註

屬性 Name 會對應至 中的 索引 StatusBar.StatusBarPanelCollectionStatusBarPanel

索引鍵比較不區分大小寫。 key如果 參數為 null 或空字串,則 Item[]null 回 。

適用於

Item[Int32]

取得或設定在指定索引處的 StatusBarPanel

public:
 virtual property System::Windows::Forms::StatusBarPanel ^ default[int] { System::Windows::Forms::StatusBarPanel ^ get(int index); void set(int index, System::Windows::Forms::StatusBarPanel ^ value); };
public virtual System.Windows.Forms.StatusBarPanel this[int index] { get; set; }
member this.Item(int) : System.Windows.Forms.StatusBarPanel with get, set
Default Public Overridable Property Item(index As Integer) As StatusBarPanel

參數

index
Int32

在集合中,要取得或設定的面板索引。

屬性值

StatusBarPanel 表示集合中位於指定索引處的面板。

例外狀況

index 參數小於零,或者大於等於 Count 類別的 StatusBar.StatusBarPanelCollection 屬性值。

指派到集合中的 StatusBarPanelnull

備註

您可以使用這個方法來取得 StatusBarPanel 儲存在集合內特定位置的 。 若要判斷集合內特定面板的索引,請使用 IndexOf 方法。

另請參閱

適用於