MonobjcMonobjc Documented Class Library
CGRectContainsRect Method (rect1, rect2)
NamespacesMonobjc.ApplicationServicesCGGeometryCGRectContainsRect(CGRect, CGRect)

Returns whether the first rectangle contains the second rectangle.

Original signature is 'bool CGRectContainsRect ( CGRect rect1, CGRect rect2 );'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static bool CGRectContainsRect(
	CGRect rect1,
	CGRect rect2
)
Public Shared Function CGRectContainsRect ( _
	rect1 As CGRect, _
	rect2 As CGRect _
) As Boolean
public:
static bool CGRectContainsRect(
	CGRect rect1, 
	CGRect rect2
)
Parameters
rect1 (CGRect)
MISSING
rect2 (CGRect)
MISSING
Return Value
true if the rectangle specified by rect2 is contained in the rectangle passed in rect1; otherwise, false. The first rectangle contains the second if the union of the two rectangles is equal to the first rectangle.
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)