[]
        
(Showing Draft Content)

FarPoint.Win.FpHyperlink.IsPointInLink

IsPointInLink Method

Determines if the point is in the text of the link in the hyperlink control.

Declaration
public static int IsPointInLink(Graphics g, int x, int y, Rectangle r, string text, Font f, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, LinkArea[] areas, Picture pict)
Public Shared Function IsPointInLink(g As Graphics, x As Integer, y As Integer, r As Rectangle, text As String, f As Font, horizontalAlignment As HorizontalAlignment, verticalAlignment As VerticalAlignment, areas As LinkArea(), pict As Picture) As Integer
Parameters
Type Name Description
Graphics g

GDI+ graphics surface

int x

X-coordinate of point

int y

Y-coordinate of point

Rectangle r

Image rectangle

string text

Text of the hyperlink

Font f

Font of the text

HorizontalAlignment horizontalAlignment

Horizontal alignment

VerticalAlignment verticalAlignment

Vertical alignment

LinkArea[] areas

Areas of the hyperlink

Picture pict

Picture (image)

Returns
Type Description
int

The index of link arr.

Determines if the point is in the text of the link in the hyperlink control.

Declaration
public static int IsPointInLink(Graphics g, int x, int y, Rectangle r, string text, Font f, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, LinkArea[] areas, Picture pict, bool rightToLeft)
Public Shared Function IsPointInLink(g As Graphics, x As Integer, y As Integer, r As Rectangle, text As String, f As Font, horizontalAlignment As HorizontalAlignment, verticalAlignment As VerticalAlignment, areas As LinkArea(), pict As Picture, rightToLeft As Boolean) As Integer
Parameters
Type Name Description
Graphics g

GDI+ graphics surface

int x

X-coordinate of point

int y

Y-coordinate of point

Rectangle r

Image rectangle

string text

Text of the hyperlink

Font f

Font of the text

HorizontalAlignment horizontalAlignment

Horizontal alignment

VerticalAlignment verticalAlignment

Vertical alignment

LinkArea[] areas

Areas of the hyperlink

Picture pict

Picture (image)

bool rightToLeft

Whether to set right to left

Returns
Type Description
int

The index of link arr.