LinkLabel.LinkCollection Class
Represents the collection of links within a LinkLabel control.
For a list of all members of this type, see LinkLabel.LinkCollection Members.
System.Object
System.Windows.Forms.LinkLabel.LinkCollection
[Visual Basic] Public Class LinkLabel.LinkCollection Implements IList, ICollection, IEnumerable [C#] public class LinkLabel.LinkCollection : IList, ICollection, IEnumerable [C++] public __gc class LinkLabel.LinkCollection : public IList, ICollection, IEnumerable [JScript] public class LinkLabel.LinkCollection implements IList, ICollection, IEnumerable
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
The LinkLabel.LinkCollection class stores the link displayed in the LinkLabel control. Each item in the collection is an instance of the LinkLabel.Link class, which defines the information of the link.
The Add method provides the ability to add a single LinkLabel.Link object to the collection. To remove links, you can use either the Remove method or the RemoveAt method if you know where the link is located within the collection. The Clear method enables you to remove all links from the collection instead of using the Remove method to remove a single link at a time.
In addition to methods and properties for adding and removing items, the LinkLabel.LinkCollection also provides methods to find links within the collection. The Contains method enables you to determine whether a LinkLabel.Link is a member of the collection. Once you know that the link is located within the collection, you can use the IndexOf method to determine where the link is located within the collection.
Requirements
Namespace: System.Windows.Forms
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
See Also
LinkLabel.LinkCollection Members | System.Windows.Forms Namespace