LinkLabel::LinkCollection::Contains Method (LinkLabel::Link^)
.NET Framework (current version)
Determines whether the specified link is within the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- link
-
Type:
System.Windows.Forms::LinkLabel::Link^
A LinkLabel::Link representing the link to search for in the collection.
Return Value
Type: System::Booleantrue 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
Available since 1.1
Show: