Back to Devexpress

GeoPoint.Longitude Property

windowsforms-devexpress-dot-xtramap-dot-geopoint.md

latest2.7 KB
Original Source

GeoPoint.Longitude Property

Gets or sets a longitude value for the current geographical coordinate.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
[DefaultValue(0)]
public double Longitude { get; set; }
vb
<DefaultValue(0)>
Public Property Longitude As Double

Property Value

TypeDefaultDescription
Double0

A Double value that is the longitude for this GeoPoint.

|

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

how-to-colorize-pushpin-items-based-on-data-source-data-t423869/CS/ColorPushpinFactory/Form1.cs#L28

csharp
tablePoints.Rows.Add(new Object[] { centerPoint.Latitude + ( (double)r.Next(600) - 300 )/ 100,
    centerPoint.Longitude + ( (double)r.Next(1000) - 500 )/ 100,
    "P" + i,

how-to-colorize-pushpin-items-based-on-data-source-data-t423869/VB/ColorPushpinFactory/Form1.vb#L29

vb
For i As Integer = 0 To pointCount - 1
    tablePoints.Rows.Add(New Object() { centerPoint.Latitude + (CDbl(r.Next(600)) - 300)/ 100, centerPoint.Longitude + (CDbl(r.Next(1000)) - 500)/ 100, "P" & i, r.Next(3), Color.FromArgb(r.Next(255),r.Next(255),r.Next(255)) })
Next i

See Also

GeoPoint Class

GeoPoint Members

DevExpress.XtraMap Namespace