Skip to main content

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

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

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v24.1.dll

NuGet Package: DevExpress.Wpf.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