Blazor | ComponentOne
C1.Blazor.Core Assembly / C1.Blazor.Core Namespace / C1Rect Structure / Offset Method / Offset(Double,Double) Method
The amount to move the rectangle horizontally.
The amount to move the rectangle vertically.

In This Topic
    Offset(Double,Double) Method
    In This Topic
    Moves the rectangle by the specified horizontal and vertical amounts.
    Syntax
    'Declaration
     
    
    Public Overloads Sub Offset( _
       ByVal offsetX As Double, _
       ByVal offsetY As Double _
    ) 
    public void Offset( 
       double offsetX,
       double offsetY
    )

    Parameters

    offsetX
    The amount to move the rectangle horizontally.
    offsetY
    The amount to move the rectangle vertically.
    Exceptions
    ExceptionDescription
    This method is called on the System.Windows.Rect.Empty rectangle.
    See Also