Monobjc.ApplicationServices.CGRect.CGRectOffset C# (CSharp) Method

CGRectOffset() public static method

Returns a rectangle with an origin offset from that of the source rectangle.
Original declaration is : CGRect CGRectOffset ( CGRect rect, float dx, float dy );
public static CGRectOffset ( CGRect rect, CGFloat dx, CGFloat dy ) : CGRect
rect CGRect The source rectangle.
dx CGFloat The value by which to move the x-coordinate of the source rectangle's origin.
dy CGFloat The value by which to move the y-coordinate of the source rectangle's origin.
return CGRect
		public static CGRect CGRectOffset(CGRect rect, CGFloat dx, CGFloat dy)
        {
            return CGRectMake(rect.origin.x + dx,
                              rect.origin.y + dy,
                              rect.size.width,
                              rect.size.height);
        }