[]
        
(Showing Draft Content)

C1.Android.Core.C1Rect.Offset

Offset Method

Offset(double, double)

Moves the rectangle by the specified horizontal and vertical amounts.

Declaration
public void Offset(double offsetX, double offsetY)
Public Sub Offset(offsetX As Double, offsetY As Double)
Parameters
Type Name Description
double offsetX

The amount to move the rectangle horizontally.

double offsetY

The amount to move the rectangle vertically.

Exceptions
Type Condition
InvalidOperationException

This method is called on the System.Windows.Rect.Empty rectangle.

Offset(C1Rect, double, double)

Returns a rectangle that is offset from the specified rectangle by using the specified horizontal and vertical amounts.

Declaration
public static C1Rect Offset(C1Rect rect, double offsetX, double offsetY)
Public Shared Function Offset(rect As C1Rect, offsetX As Double, offsetY As Double) As C1Rect
Parameters
Type Name Description
C1Rect rect

The rectangle to move.

double offsetX

The horizontal offset for the new rectangle.

double offsetY

The vertical offset for the new rectangle.

Returns
Type Description
C1Rect

The resulting rectangle.

Exceptions
Type Condition
InvalidOperationException

rect is System.Windows.Rect.Empty.