[]
Moves the rectangle by the specified horizontal and vertical amounts.
public void Offset(double offsetX, double offsetY)
Public Sub Offset(offsetX As Double, offsetY As Double)
| Type | Name | Description |
|---|---|---|
| double | offsetX | The amount to move the rectangle horizontally. |
| double | offsetY | The amount to move the rectangle vertically. |
| Type | Condition |
|---|---|
| InvalidOperationException | This method is called on the System.Windows.Rect.Empty rectangle. |
Returns a rectangle that is offset from the specified rectangle by using the specified horizontal and vertical amounts.
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
| 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. |
| Type | Description |
|---|---|
| C1Rect | The resulting rectangle. |
| Type | Condition |
|---|---|
| InvalidOperationException |
|