MonobjcMonobjc Documented Class Library
CGRectInset Method (rect, dx, dy)
NamespacesMonobjc.ApplicationServicesCGRectCGRectInset(CGRect, Single, Single)
Returns a rectangle that is smaller or larger than the source rectangle, with the same center point.
Declaration Syntax
C#Visual BasicVisual C++
public static CGRect CGRectInset(
	CGRect rect,
	float dx,
	float dy
)
Public Shared Function CGRectInset ( _
	rect As CGRect, _
	dx As Single, _
	dy As Single _
) As CGRect
public:
static CGRect CGRectInset(
	CGRect rect, 
	float dx, 
	float dy
)
Parameters
rect (CGRect)
The source rectangle.
dx (Single)
The value by which to adjust the x-coordinates of the source rectangle. To create an inset rectangle, specify a positive value. To create a larger, encompassing rectangle, specify a negative value.
dy (Single)
The value by which to adjust the y-coordinates of the source rectangle. To create an inset rectangle, specify a positive value. To create a larger, encompassing rectangle, specify a negative value.
Return Value
A rectangle with its origin offset in the x-axis by the distance specified by the dx parameter and in the y-axis by the distance specified by the dy parameter, and its size adjusted by (2*dx,2*dy), relative to the source rectangle. If dx and dy are positive values, then the rectangle�s size is decreased. If dx and dy are negative values, the rectangle�s size is increased.
Remarks
Original declaration is : CGRect CGRectInset ( CGRect rect, float dx, float dy );
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)