windowsforms-devexpress-dot-xtramap-dot-mappolyline.md
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
[DefaultValue(false)]
public bool IsGeodesic { get; set; }
<DefaultValue(False)>
Public Property IsGeodesic As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if the line is geodesic; otherwise false.
|
The following images show a polyline with different IsGeodesic values:
| IsGeodesic = True | IsGeodesic = 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.
void SetPolylineDrawOptions(MapPolyline shape) {
shape.IsGeodesic = true;
shape.Stroke = defaultLineColor;
Private Sub SetPolylineDrawOptions(ByVal shape As MapPolyline)
shape.IsGeodesic = True
shape.Stroke = defaultLineColor
See Also