CGRect.Offset Method

Definition

Overloads

Offset(CGPoint)

Adjusts the location of this rectangle by the specified amount.

Offset(Double, Double)

Adjusts the location of this rectangle by the specified amount.

Offset(nfloat, nfloat)

Adjusts the location of this rectangle by the specified amount.

Offset(Single, Single)

Adjusts the location of this rectangle by the specified amount.

Offset(CGPoint)

Adjusts the location of this rectangle by the specified amount.

public void Offset (CoreGraphics.CGPoint pos);
member this.Offset : CoreGraphics.CGPoint -> unit

Parameters

pos
CGPoint

Amount to offset the location.

Remarks

This method adjusts the location of the upper-left corner horizontally by the x-coordinate of the specified point, and vertically by the y-coordinate of the specified point.

Applies to

Offset(Double, Double)

Adjusts the location of this rectangle by the specified amount.

public void Offset (double x, double y);
member this.Offset : double * double -> unit

Parameters

x
Double
y
Double

Applies to

Offset(nfloat, nfloat)

Adjusts the location of this rectangle by the specified amount.

public void Offset (nfloat x, nfloat y);
member this.Offset : nfloat * nfloat -> unit

Parameters

x
nfloat

The horizontal offset.

y
nfloat

The vertical offset.

Applies to

Offset(Single, Single)

Adjusts the location of this rectangle by the specified amount.

public void Offset (float x, float y);
member this.Offset : single * single -> unit

Parameters

x
Single
y
Single

Applies to