Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Drawing Namespace / Rectangle Structure / GetAlignRectangle Method
The width of new aligned rectangle.
The height of new aligned rectangle.
How the new rectangle is aligned.


In This Topic
    GetAlignRectangle Method
    In This Topic
    Gets the aligned rectangle.
    Syntax
    'Declaration
     
    
    Public Function GetAlignRectangle( _
       ByVal width As Double, _
       ByVal height As Double, _
       ByVal alignment As RectAlignment _
    ) As Rectangle
    'Usage
     
    
    Dim instance As Rectangle
    Dim width As Double
    Dim height As Double
    Dim alignment As RectAlignment
    Dim value As Rectangle
     
    value = instance.GetAlignRectangle(width, height, alignment)
    public Rectangle GetAlignRectangle( 
       double width,
       double height,
       RectAlignment alignment
    )

    Parameters

    width
    The width of new aligned rectangle.
    height
    The height of new aligned rectangle.
    alignment
    How the new rectangle is aligned.

    Return Value

    The new aligned rectangle.
    See Also