MonobjcMonobjc Documented Class Library
CGRectIntersection Method (rect1, rect2)
NamespacesMonobjc.ApplicationServicesCGRectCGRectIntersection(CGRect, CGRect)
Returns the intersection of two rectangles.
Declaration Syntax
C#Visual BasicVisual C++
public static CGRect CGRectIntersection(
	CGRect rect1,
	CGRect rect2
)
Public Shared Function CGRectIntersection ( _
	rect1 As CGRect, _
	rect2 As CGRect _
) As CGRect
public:
static CGRect CGRectIntersection(
	CGRect rect1, 
	CGRect rect2
)
Parameters
rect1 (CGRect)
The first source rectangle.
rect2 (CGRect)
The second source rectangle.
Return Value
A rectangle that is the intersection of the two specified rectangles. If the two rectangles do not intersect, returns the null rectangle. To check for this condition, use CGRectIsNull.
Remarks
Original declaration is : CGRect CGRectIntersection ( CGRect rect1, CGRect rect2 );
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.Foundation (Module: Monobjc.Foundation)