Version

InsideRectangle Method

Indicates whether a point is within a rectangle.
Syntax
'Declaration
 
Protected Shared Function InsideRectangle( _
   ByVal rect As Rectangle, _
   ByVal point As Point _
) As Boolean
protected static bool InsideRectangle( 
   Rectangle rect,
   Point point
)

Parameters

rect
Specifies a rectangular region.
point
Specifies a point location.

Return Value

Whether the point location is within the rectangular region.
Remarks

This auxillary method can be used for hit and edge detection.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also