Back to Devexpress

GeoMapCoordinateSystem.Projection Property

windowsforms-devexpress-dot-xtramap-dot-geomapcoordinatesystem.md

latest2.7 KB
Original Source

GeoMapCoordinateSystem.Projection Property

Gets or sets the projection used by the geographical coordinate system.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public ProjectionBase Projection { get; set; }
vb
Public Property Projection As ProjectionBase

Property Value

TypeDescription
ProjectionBase

A ProjectionBase class descendant object.

|

Remarks

To learn more about projections, refer to: Geographical Projections.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Projection property.

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.

chart-for-winforms-specify-a-map-projection/CS/MapProjections/Form1.cs#L43

csharp
private void lbProjection_SelectedIndexChanged(object sender, EventArgs e) {
    CoordinateSystem.Projection = lbProjection.SelectedValue as ProjectionBase;
}

chart-for-winforms-specify-a-map-projection/VB/MapProjections/Form1.vb#L47

vb
Private Sub lbProjection_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles lbProjection.SelectedIndexChanged
    CoordinateSystem.Projection = TryCast(lbProjection.SelectedValue, ProjectionBase)
End Sub

See Also

GeoMapCoordinateSystem Class

GeoMapCoordinateSystem Members

DevExpress.XtraMap Namespace