MapRectangle Class

The class used to draw a rectangle on a map.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v20.1.dll

Declaration

public class MapRectangle :
    MapShape,
    IRectangleCore,
    ISupportRectangle,
    ISupportCoordLocation,
    IPolygonCore,
    IPointContainerCore,
    ISupportCoordPoints
Public Class MapRectangle
    Inherits MapShape
    Implements 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.

Examples

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

Implements

Inheritance

See Also