Export (0) Print
Expand All

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
[C#]
public bool Contains(
 LinkLabel.Link link
);
[C++]
public: bool Contains(
 LinkLabel.Link* link
);
[JScript]
public function Contains(
   link : LinkLabel.Link
) : Boolean;

Parameters

link
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.

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft