LinkLabel.LinkCollection.Item[] 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从集合中获取项。
重载
| 名称 | 说明 |
|---|---|
| Item[String] |
从集合中获取具有指定键的链接。 |
| Item[Int32] |
获取或设置集合中指定索引处的链接。 |
Item[String]
- Source:
- LinkLabel.LinkCollection.cs
- Source:
- LinkLabel.LinkCollection.cs
- Source:
- LinkLabel.LinkCollection.cs
- Source:
- LinkLabel.LinkCollection.cs
- Source:
- LinkLabel.LinkCollection.cs
从集合中获取具有指定键的链接。
public:
virtual property System::Windows::Forms::LinkLabel::Link ^ default[System::String ^] { System::Windows::Forms::LinkLabel::Link ^ get(System::String ^ key); };
public virtual System.Windows.Forms.LinkLabel.Link this[string key] { get; }
public virtual System.Windows.Forms.LinkLabel.Link? this[string key] { get; }
member this.Item(string) : System.Windows.Forms.LinkLabel.Link
Default Public Overridable ReadOnly Property Item(key As String) As LinkLabel.Link
参数
- key
- String
要从集合中检索的链接的名称。
属性值
集合 LinkLabel.Link 中具有指定键的键。
注解
关键比较不区分大小写。
key如果参数为null空字符串,Item[]则null返回 。
该 Name 属性对应于中某个 LinkLabel.Link 项的 LinkLabel.LinkCollection键。
适用于
Item[Int32]
- Source:
- LinkLabel.LinkCollection.cs
- Source:
- LinkLabel.LinkCollection.cs
- Source:
- LinkLabel.LinkCollection.cs
- Source:
- LinkLabel.LinkCollection.cs
- Source:
- LinkLabel.LinkCollection.cs
获取或设置集合中指定索引处的链接。
public:
virtual property System::Windows::Forms::LinkLabel::Link ^ default[int] { System::Windows::Forms::LinkLabel::Link ^ get(int index); void set(int index, System::Windows::Forms::LinkLabel::Link ^ value); };
public virtual System.Windows.Forms.LinkLabel.Link this[int index] { get; set; }
member this.Item(int) : System.Windows.Forms.LinkLabel.Link with get, set
Default Public Overridable Property Item(index As Integer) As LinkLabel.Link
参数
- index
- Int32
要获取的集合中链接的索引。
属性值
一个对象,表示位于集合中指定索引处的链接。
例外
值为 index 负值或大于集合中的项数。
注解
可以使用此方法获取存储在集合中特定位置的链接。 若要确定集合中特定项的索引,请使用 IndexOf 该方法。