MonobjcMonobjc Documented Class Library
CGRectContainsPoint Method (rect, point)
NamespacesMonobjc.ApplicationServicesCGGeometryCGRectContainsPoint(CGRect, CGPoint)

Returns whether a rectangle contains a specified point.

Original signature is 'bool CGRectContainsPoint ( CGRect rect, CGPoint point );'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static bool CGRectContainsPoint(
	CGRect rect,
	CGPoint point
)
Public Shared Function CGRectContainsPoint ( _
	rect As CGRect, _
	point As CGPoint _
) As Boolean
public:
static bool CGRectContainsPoint(
	CGRect rect, 
	CGPoint point
)
Parameters
rect (CGRect)
MISSING
point (CGPoint)
MISSING
Return Value
true if the rectangle is not null or empty and the point is located within the rectangle; otherwise, false.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)