Skip to main content
A newer version of this page is available. .

MapPolygon Class

The class used to draw a polygon on a map.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v18.1.dll

Declaration

public class MapPolygon :
    MapShape,
    ISupportCoordPoints,
    IPolygonCore,
    IPointContainerCore,
    IEditableItem

The following members accept/return MapPolygon objects:

Remarks

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

MapPolygonExample

Example

var polygon = new MapPolygon();
polygon.Points.AddRange(new GeoPoint[] {
    new GeoPoint(70,80),
    new GeoPoint(75,90),
    new GeoPoint(75,130)
});
ItemStorage.Items.Add(polygon);

The following code snippets (auto-collected from DevExpress Examples) contain references to the MapPolygon class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

See Also