Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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