[]
        
(Showing Draft Content)

C1.Win.Interop.Rect.Offset

Offset Method

Offset(double, double)

Offsets the location of the current Rect by specified horizontal and vertical amounts.

Declaration
public void Offset(double x, double y)
Parameters
Type Name Description
double x

The horizontal offset to apply.

double y

The vertical offset to apply.

Offset(Point)

Offsets the location of the current Rect by horizontal and vertical amounts specified by a Point.

Declaration
public void Offset(Point pt)
Parameters
Type Name Description
Point pt

The Point specifying the horizontal and vertical offsets to apply.

Offset(Rect, Point)

Adjusts the location of this rectangle by the specified amount.

Declaration
public static Rect Offset(Rect r, Point offset)
Parameters
Type Name Description
Rect r

The rectangle to adjust.

Point offset

Amount to offset the location.

Returns
Type Description
Rect

The adjusted rectangle.