Share via


CGRect.Offset Method

Definition

Overloads

Name Description
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)
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

<attribution license="cc4" from="Microsoft" modified="false"></attribution>Amount to offset the location.

Remarks

<attribution license="cc4" from="Microsoft" modified="false"></attribution>

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)

public void Offset(System.Runtime.InteropServices.NFloat x, System.Runtime.InteropServices.NFloat y);
member this.Offset : System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat -> unit

Parameters

x
NFloat
y
NFloat

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