Spread WinForms 15
GrapeCity.Spreadsheet Assembly / GrapeCity.Drawing Namespace / Rect Structure / Contains Method
The x-coordinate of the point to test.
The y-coordinate of the point to test.


In This Topic
Contains Method (Rect)
In This Topic
Determines if the specified point is contained within this Rect structure.
Syntax
'Declaration
 
Public Function Contains( _
   ByVal x As Integer, _
   ByVal y As Integer _
) As Boolean
 
'Usage
 
Dim instance As Rect
Dim x As Integer
Dim y As Integer
Dim value As Boolean
 
value = instance.Contains(x, y)

Parameters

x
The x-coordinate of the point to test.
y
The y-coordinate of the point to test.

Return Value

This method returns true if the point defined by x and y is contained within this Rect structure; otherwise false.
See Also