Export (0) Print
Expand All

LinkLabel.LinkCollection.RemoveAt Method

Removes a link at a specified location within the collection.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public void RemoveAt (
	int index
)
public final void RemoveAt (
	int index
)
public final function RemoveAt (
	index : int
)

Parameters

index

The zero-based index of the item to remove from the collection.

Exception typeCondition

ArgumentOutOfRangeException

The value of index is a negative value or greater than the number of items in the collection.

When you remove a link from the collection, the indexes change for subsequent items in the collection. All information about the deleted link is lost. You can use this method to remove a specific link from the collection by specifying the index of the link to remove from the collection. To specify the link to remove instead of the index to the link, use the Remove method. To remove all links from the collection, use the Clear method.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft