MonobjcMonobjc Documented Class Library
CGRectContainsRect Method (rect1, rect2)
NamespacesMonobjc.ApplicationServicesCGRectCGRectContainsRect(CGRect, CGRect)
Indicates whether the first rectangle contains the second rectangle.
Declaration Syntax
C#Visual BasicVisual C++
public static int CGRectContainsRect(
	CGRect rect1,
	CGRect rect2
)
Public Shared Function CGRectContainsRect ( _
	rect1 As CGRect, _
	rect2 As CGRect _
) As Integer
public:
static int CGRectContainsRect(
	CGRect rect1, 
	CGRect rect2
)
Parameters
rect1 (CGRect)
The rectangle to examine for containment of the rectangle passed in rect2.
rect2 (CGRect)
The rectangle to examine for being contained in the rectangle passed in rect1.
Return Value
Returns 1 if the rectangle specified by rect2 is contained in the rectangle passed in rect1; otherwise, 0. The first rectangle contains the second if the union of the two rectangles is equal to the first rectangle.
Remarks
Original declaration is : int CGRectContainsRect ( 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)