Class
LocationCollection

Represents an ordered collection of Location objects.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(LocationCollectionConverter))]
public class LocationCollection : ObservableCollection<Location>, IList<Location>, ICollection<Location>, IList, ICollection, IReadOnlyList<Location>, IReadOnlyCollection<Location>, IEnumerable<Location>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged

Inheritance: objectCollection<Location>ObservableCollection<Location>LocationCollection

Implements: ICollectionICollection<Location>IEnumerableIEnumerable<Location>IListIList<Location>INotifyCollectionChangedINotifyPropertyChangedIReadOnlyCollection<Location>IReadOnlyList<Location>

Inherited Members ObservableCollection<Location>.Move(int, int)ObservableCollection<Location>.ClearItems()ObservableCollection<Location>.RemoveItem(int)ObservableCollection<Location>.InsertItem(int, Location)ObservableCollection<Location>.SetItem(int, Location)ObservableCollection<Location>.MoveItem(int, int)ObservableCollection<Location>.OnPropertyChanged(PropertyChangedEventArgs)ObservableCollection<Location>.OnCollectionChanged(NotifyCollectionChangedEventArgs)ObservableCollection<Location>.BlockReentrancy()ObservableCollection<Location>.CheckReentrancy()ObservableCollection<Location>.CollectionChangedObservableCollection<Location>.PropertyChangedCollection<Location>.Add(Location)Collection<Location>.Clear()Collection<Location>.CopyTo(Location[], int)Collection<Location>.Contains(Location)Collection<Location>.GetEnumerator()Collection<Location>.IndexOf(Location)Collection<Location>.Insert(int, Location)Collection<Location>.Remove(Location)Collection<Location>.RemoveAt(int)Collection<Location>.CountCollection<Location>.ItemsCollection<Location>.this[int]

Constructors

LocationCollection()

Declaration

cs-api-definition
public LocationCollection()

Methods

Parse(string)

Converts a String representation of the Point3DCollection into the equivalent Point3DCollection class.

Declaration

cs-api-definition
public static LocationCollection Parse(string source)

Parameters

source

string

The String representation of the Point3DCollection class.

Returns

LocationCollection

The equivalent Point3DCollection class.

Parse(string, bool)

Converts a String representation of the LocationCollection into the equivalent LocationCollection class.

Declaration

cs-api-definition
public static LocationCollection Parse(string source, bool reversed)

Parameters

source

string

The String representation of the LocationCollection class.

reversed

bool

Indicates whether string contains coordinates in reversed order (Longitude-Latitude like in KML files).

Returns

LocationCollection

The equivalent LocationCollection class.

ToPointCollection(RadMap)

Convert latitude-longitudes to the screen points using settings of the RadMap control.

Declaration

cs-api-definition
public PointCollection ToPointCollection(RadMap mapControl)

Parameters

mapControl

RadMap

Map control to use settings from.

Returns

PointCollection

Collection of the screen points.

ToString(IFormatProvider)

Creates a String representation of this LocationCollection.

Declaration

cs-api-definition
public string ToString(IFormatProvider provider)

Parameters

provider

IFormatProvider

The culture-specific formatting information.

Returns

string

A String containing the Location structures in the collection.

ToString(IFormatProvider, bool)

Creates a String representation of this LocationCollection.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Kml")]
public string ToString(IFormatProvider provider, bool useKmlFormat)

Parameters

provider

IFormatProvider

The culture-specific formatting information.

useKmlFormat

bool

Indicates whether KML syntax should be used.

Returns

string

A String containing the Location structures in the collection.