CGRect.Offset Method 
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 -> unitParameters
- 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(nfloat, nfloat)
Adjusts the location of this rectangle by the specified amount.
public void Offset(nfloat x, nfloat y);member this.Offset : nfloat * nfloat -> unitParameters
- x
- nfloat
<attribution license="cc4" from="Microsoft" modified="false"></attribution>The horizontal offset.
- y
- nfloat
<attribution license="cc4" from="Microsoft" modified="false"></attribution>The vertical offset.