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 Class

The class used to draw a rectangle on a map.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.2.dll

NuGet Package: DevExpress.Win.Map

#Declaration

public class MapRectangle :
    MapShape,
    IRectangleCore,
    ISupportRectangle,
    ISupportCoordLocation,
    IPolygonCore,
    IPointContainerCore,
    ISupportCoordPoints

#Remarks

The following image shows an example of a map rectangle object.

MapRectangleExample

Note

The MapRectangle.Width and MapRectangle.Height properties are measured in kilometers by default.

#Example

View Example

ItemStorage.Items.Add(new MapRectangle() { Location = new GeoPoint(-70, -100), Width = 500, Height = 750 });

#Implements

#Inheritance

See Also