LinkLabel.LinkCollection.Item Property (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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; }

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