LinkLabel.LinkCollection.Contains Method (LinkLabel.Link)

 

Determines whether the specified link is within the collection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public bool Contains(
	LinkLabel.Link link
)

Parameters

link
Type: System.Windows.Forms.LinkLabel.Link

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

Return Value

Type: System.Boolean

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

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.

.NET Framework
Available since 1.1
Return to top
Show: