[]
        
(Showing Draft Content)

GrapeCity.Drawing.Rectangle.GetAlignRectangle

GetAlignRectangle Method

GetAlignRectangle(double, double, RectAlignment)

Gets the aligned rectangle.

Declaration
public Rectangle GetAlignRectangle(double width, double height, RectAlignment alignment)
Public Function GetAlignRectangle(width As Double, height As Double, alignment As RectAlignment) As Rectangle
Parameters
Type Name Description
double width

The width of new aligned rectangle.

double height

The height of new aligned rectangle.

RectAlignment alignment

How the new rectangle is aligned.

Returns
Type Description
Rectangle

The new aligned rectangle.