Label. Point InLink(Int32, Int32) Method
Gets the link located at the specified client coordinates.
protected: System::Windows::Forms::LinkLabel::Link ^ PointInLink(int x, int y);
protected System.Windows.Forms.LinkLabel.Link PointInLink (int x, int y);
member this.PointInLink : int * int -> System.Windows.Forms.LinkLabel.Link
Protected Function PointInLink (x As Integer, y As Integer) As LinkLabel.Link
The horizontal coordinate of the point to search for a link.
The vertical coordinate of the point to search for a link.
A LinkLabel.Link representing the link located at the specified coordinates. If the point does not contain a link,
null is returned.
This method enables you to determine whether a link is located at a specific point within a LinkLabel control. You can use this method in an event handler for the MouseEnter event of the control to determine whether the mouse pointer is hovering over a link in the control. Once you have determined that the mouse pointer is over a link, you can then display additional information about the link to the user through StatusBar text or a ToolTip.