This documentation is archived and is not being maintained.

LinkLabel.LinkCollection.Contains Method

Determines whether the specified link is within the collection.

[Visual Basic]
Public Function Contains( _
   ByVal link As LinkLabel.Link _
) As Boolean
public bool Contains(
 LinkLabel.Link link
public: bool Contains(
 LinkLabel.Link* link
public function Contains(
   link : LinkLabel.Link
) : Boolean;


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

Return Value

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


The Contains method enables you to determine whether a LinkLabel.Link object 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.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

LinkLabel.LinkCollection Class | LinkLabel.LinkCollection Members | System.Windows.Forms Namespace | IndexOf