LinkLabel.LinkCollection.Item Property (Int32)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets and sets the link at the specified index within the collection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public virtual LinkLabel.Link this[
	int index
] { get; set; }


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

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
Return to top