A newer version of this page is available. Switch to the current version.

MapRectangle.CreateByCenter(MapCoordinateSystem, CoordPoint, Double, Double) Method

Creates a map rectangle using its center point, width and height.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v19.2.dll

Declaration

public static MapRectangle CreateByCenter(
    MapCoordinateSystem coordSystem,
    CoordPoint center,
    double width,
    double height
)
Public Shared Function CreateByCenter(
    coordSystem As MapCoordinateSystem,
    center As CoordPoint,
    width As Double,
    height As Double
) As MapRectangle

Parameters

Name Type Description
coordSystem MapCoordinateSystem

A MapCoordinateSystem class descendant object representing the coordinate system in which the rectangle should be initialized.

center CoordPoint

A CoordPoint object specifying the rectangle center point.

width Double

A Double specifying the rectangle width.

height Double

A Double specifying the rectangle height.

Returns

Type Description
MapRectangle

A MapRectangle object with the specified center point width and height.

See Also