Blazor | ComponentOne
C1.Blazor.Core Assembly / C1.Blazor.Core Namespace / C1Rect Structure / Offset Method / Offset(C1Rect,Double,Double) Method
The rectangle to move.
The horizontal offset for the new rectangle.
The vertical offset for the new rectangle.

In This Topic
    Offset(C1Rect,Double,Double) Method
    In This Topic
    Returns a rectangle that is offset from the specified rectangle by using the specified horizontal and vertical amounts.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function Offset( _
       ByVal rect As C1Rect, _
       ByVal offsetX As Double, _
       ByVal offsetY As Double _
    ) As C1Rect
    public static C1Rect Offset( 
       C1Rect rect,
       double offsetX,
       double offsetY
    )

    Parameters

    rect
    The rectangle to move.
    offsetX
    The horizontal offset for the new rectangle.
    offsetY
    The vertical offset for the new rectangle.

    Return Value

    The resulting rectangle.
    Exceptions
    See Also