MonobjcMonobjc Documented Class Library
CGRectOffset Method (rect, dx, dy)
NamespacesMonobjc.ApplicationServicesCGGeometryCGRectOffset(CGRect, CGFloat, CGFloat)

Returns a rectangle with an origin that is offset from that of the source rectangle.

Original signature is 'CGRect CGRectOffset ( CGRect rect, CGFloat dx, CGFloat dy );'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static CGRect CGRectOffset(
	CGRect rect,
	CGFloat dx,
	CGFloat dy
)
Public Shared Function CGRectOffset ( _
	rect As CGRect, _
	dx As CGFloat, _
	dy As CGFloat _
) As CGRect
public:
static CGRect CGRectOffset(
	CGRect rect, 
	CGFloat dx, 
	CGFloat dy
)
Parameters
rect (CGRect)
MISSING
dx (CGFloat)
MISSING
dy (CGFloat)
MISSING
Return Value
A rectangle that is the same size as the source, but with its origin offset by dx units along the x-axis and dy units along the y-axis with respect to the source.
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)