Class DefaultPropertyAccessor
Default implementation of the IMapPropertyAccessor accessor interface.
Inheritance
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public class DefaultPropertyAccessor : Object, IMapPropertyAccessor
Remarks
This implementation uses reflection to access necessary properties in the data items. It supposes that there is only 1 property of type Location in the data item. Value of this property is returned as item's location. It supposes that there is only 1 property of type ZoomRange in the data item. Value of this property is returned as item's zoom range.
Constructors
DefaultPropertyAccessor(Type)
Initializes a new instance of the DefaultPropertyAccessor class using information about type of the item.
Declaration
public DefaultPropertyAccessor(Type itemType)
Parameters
System.Type
itemType
Item type. |
Methods
GetDouble(Object, DataMember)
Gets double value from the correspondent attachable property.
Declaration
public double GetDouble(object item, DataMember dataMember)
Parameters
System.Object
item
Item to get value from. |
DataMember
dataMember
Data member. |
Returns
System.Double
Double value or NaN. |
Implements
GetHotspot(Object)
Gets hotspot of the data item.
Declaration
public HotSpot GetHotspot(object item)
Parameters
System.Object
item
Data item to get hotspot for. |
Returns
HotSpot
Hotspot of the data item. |
Implements
GetLocation(Object)
Gets geographical location of the data item.
Declaration
public Location GetLocation(object item)
Parameters
System.Object
item
Data item to get geographical location for. |
Returns
Location
Location of the data item. |
Implements
GetZIndex(Object)
Gets ZIndex of the data item.
Declaration
public int GetZIndex(object item)
Parameters
System.Object
item
Item to get ZIndex from. |
Returns
System.Int32
ZIndex of the data item. |
Implements
GetZoomRange(Object)
Gets zoom range of the data item.
Declaration
public ZoomRange GetZoomRange(object item)
Parameters
System.Object
item
Item to get zoom range from. |
Returns
ZoomRange
Zoom range of the data item. |