Back to Devexpress

GeoPoint.Latitude Property

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

latest2.7 KB
Original Source

GeoPoint.Latitude Property

Gets or sets a latitude 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 Latitude { get; set; }
vb
<DefaultValue(0)>
Public Property Latitude As Double

Property Value

TypeDefaultDescription
Double0

A Double value that is the latitude for this GeoPoint.

|

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

csharp
for (int i = 0; i < pointCount; i++) {
    tablePoints.Rows.Add(new Object[] { centerPoint.Latitude + ( (double)r.Next(600) - 300 )/ 100,
        centerPoint.Longitude + ( (double)r.Next(1000) - 500 )/ 100,

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