StatusBar.StatusBarPanelCollection.Item[Int32] StatusBar.StatusBarPanelCollection.Item[Int32] StatusBar.StatusBarPanelCollection.Item[Int32] StatusBar.StatusBarPanelCollection.Item[Int32] Property

定义

重载

Item[String] Item[String] Item[String] Item[String]

获取集合中具有指定键的项。Gets an item with the specified key from the collection.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

获取或设置指定索引处的 StatusBarPanelGets or sets the StatusBarPanel at the specified index.

Item[String] Item[String] Item[String] Item[String]

获取集合中具有指定键的项。Gets an item with the specified key from the collection.

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 String String String

要从集合中检索的项的名称。The name of the item to retrieve from the collection.

属性值

具有指定键的 StatusBarPanelThe StatusBarPanel with the specified key.

注解

属性对应于中StatusBarPanel StatusBar.StatusBarPanelCollection的的键。 NameThe Name property corresponds to the key for a StatusBarPanel in the StatusBar.StatusBarPanelCollection.

密钥比较不区分大小写。The key comparison is not case-sensitive. 如果参数为null或空字符串, Item[Int32]则返回key``null.If the key parameter is null or an empty string, Item[Int32] returns null.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

获取或设置指定索引处的 StatusBarPanelGets or sets the StatusBarPanel at the specified index.

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 Int32 Int32 Int32

集合中要获取或设置的面板索引。The index of the panel in the collection to get or set.

属性值

一个 StatusBarPanel,它表示位于集合中指定索引处的面板。A StatusBarPanel representing the panel located at the specified index within the collection.

异常

index 参数或者小于零,或者大于或等于 Count 类的 StatusBar.StatusBarPanelCollection 属性的值。The index parameter is less than zero or greater than or equal to the value of the Count property of the StatusBar.StatusBarPanelCollection class.

分配给集合的 StatusBarPanelnullThe StatusBarPanel assigned to the collection was null.

注解

您可以使用此方法来获取存储StatusBarPanel在集合中的特定位置的。You can use this method to obtain the StatusBarPanel stored at a specific location within the collection. 若要确定集合中特定面板的索引, 请使用IndexOf方法。To determine the index of a specific panel within the collection, use the IndexOf method.

另请参阅

适用于