Bearbeiten

Freigeben über


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
Public Function Contains (link As LinkLabel.Link) As Boolean

Parameters

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