System.Windows.Forms.LinkLabel.Links Property

Gets the collection of links contained within the System.Windows.Forms.LinkLabel.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public LinkLabel.LinkCollection Links { get; }

Value

Documentation for this section has not yet been entered.

Remarks

A System.Windows.Forms.LinkLabel control can display any number of links within the text of the control. This property enables you to access the System.Windows.Forms.LinkLabel.LinkCollection instance associated with the System.Windows.Forms.LinkLabel that represents the collection of links displayed in the control. You can then use the members of the System.Windows.Forms.LinkLabel.LinkCollection class to add, remove, and find links in the collection. For more information on the types of tasks you can perform with the link collection, see System.Windows.Forms.LinkLabel.LinkCollection.

When a System.Windows.Forms.LinkLabel control is created, a default hyperlink that contains all the text within the System.Windows.Forms.LinkLabel control is added to the System.Windows.Forms.LinkLabel.LinkCollection. You can override this default link by specifying a new link area with the LinkLabel.LinkArea property, or specify a link using the System.Windows.Forms.LinkLabel.LinkCollection.Add(int, int) method of the System.Windows.Forms.LinkLabel.LinkCollection. You can also remove the default hyperlink by using the System.Windows.Forms.LinkLabel.LinkCollection.Remove(System.Windows.Forms.LinkLabel.Link) method of the System.Windows.Forms.LinkLabel.LinkCollection class.

If you do not need to specify more than one link to display within the System.Windows.Forms.LinkLabel, you can use the LinkLabel.LinkArea property.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0