Skip to main content

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

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

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.1.dll

NuGet Package: DevExpress.Win.Map

Declaration

public static MapRectangle CreateByCenter(
    MapCoordinateSystem coordSystem,
    CoordPoint center,
    double width,
    double height
)

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