Back to Devexpress

MapRectangle Class

windowsforms-devexpress-dot-xtramap-2cae3a05.md

latest2.9 KB
Original Source

MapRectangle Class

The class used to draw a rectangle on a map.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public class MapRectangle :
    MapShape,
    IRectangleCore,
    ISupportRectangle,
    ISupportCoordLocation,
    IPolygonCore,
    IPointContainerCore,
    ISupportCoordPoints
vb
Public Class MapRectangle
    Inherits MapShape
    Implements IRectangleCore,
               ISupportRectangle,
               ISupportCoordLocation,
               IPolygonCore,
               IPointContainerCore,
               ISupportCoordPoints

The following members return MapRectangle objects:

Remarks

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

Note

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

Example

View Example

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

Implements

IColorizerElement

Inheritance

Object MapItem MapShape MapRectangle

See Also

MapRectangle Members

Vector Items

DevExpress.XtraMap Namespace