LinkLabel.LinkCollection.Contains(LinkLabel+Link) LinkLabel.LinkCollection.Contains(LinkLabel+Link) LinkLabel.LinkCollection.Contains(LinkLabel+Link) Method

Definition

Determines whether the specified link is within the collection.

public:
 bool Contains(System::Windows::Forms::LinkLabel::Link ^ link);
public bool Contains (System.Windows.Forms.LinkLabel.Link link);
member this.Contains : System.Windows.Forms.LinkLabel.Link -> bool

Parameters

link
LinkLabel.Link LinkLabel.Link LinkLabel.Link

A LinkLabel.Link representing the link to search for in the collection.

Returns

true if the specified link is within the collection; otherwise, false.

Remarks

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.

Applies to

See also