LinkLabel::LinkCollection::Item Property (Int32)
.NET Framework (current version)
Gets and sets the link at the specified index within the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property LinkLabel::Link^ default[ int index ] { virtual LinkLabel::Link^ get(int index); virtual void set(int index, LinkLabel::Link^ value); }
Parameters
- index
-
Type:
System::Int32
The index of the link in the collection to get.
Property Value
Type: System.Windows.Forms::LinkLabel::Link^An object representing the link located at the specified index within the collection.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The value of index is a negative value or greater than the number of items in the collection. |
You can use this method to obtain the link stored at a specific location within the collection. To determine the index of a specific item within the collection, use the IndexOf method.
.NET Framework
Available since 1.1
Available since 1.1
Show: