Back to Devexpress

MapPolyline.IsGeodesic Property

windowsforms-devexpress-dot-xtramap-dot-mappolyline.md

latest2.9 KB
Original Source

MapPolyline.IsGeodesic Property

Gets or sets a value that indicates whether the polyline is geodesic.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
[DefaultValue(false)]
public bool IsGeodesic { get; set; }
vb
<DefaultValue(False)>
Public Property IsGeodesic As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if the line is geodesic; otherwise false.

|

Remarks

The following images show a polyline with different IsGeodesic values:

IsGeodesic = TrueIsGeodesic = False

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsGeodesic 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.

winforms-dashboard-custom-items-extension/CS/CustomItemExtension/CustomItems/WaypointMap/WaypointMapItemControlProvider.cs#L128

csharp
void SetPolylineDrawOptions(MapPolyline shape) {
    shape.IsGeodesic = true;
    shape.Stroke = defaultLineColor;

winforms-dashboard-custom-items-extension/VB/CustomItemExtension/CustomItems/WaypointMap/WaypointMapItemControlProvider.vb#L136

vb
Private Sub SetPolylineDrawOptions(ByVal shape As MapPolyline)
    shape.IsGeodesic = True
    shape.Stroke = defaultLineColor

See Also

MapPolyline Class

MapPolyline Members

DevExpress.XtraMap Namespace