ClassExtendedData
Represents map shape extended data.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public class ExtendedData : INotifyPropertyChanged
Inheritance: objectExtendedData
Implements:
Constructors
ExtendedData(ExtendedPropertySet)
Initializes a new instance of the ExtendedData class.
Declaration
public ExtendedData(ExtendedPropertySet propertySet)
Parameters
propertySet
Set of the extended properties this extended data can operates with.
Properties
Data
Return reference to self. This property can be used within Binding in XAML to implement binding which reflect extended property changes.
PropertySet
Gets set of the extended properties this extended data can operates with.
Declaration
public ExtendedPropertySet PropertySet { get; }
Property Value
this[string, string]
Gets value from object using format string.
Declaration
public object this[string format, string lang] { get; }
Parameters
format
Format string.
lang
Language.
Property Value
Formatted value.
Example
Format string can be specified in a few different ways: as simple name of the extended property, as formatted extended property, or as format string which can use number of the extended properties.
// Using of the single extended property name.
string value = extendedData["CNTRY_NAME"];
// Using of the formatted extended property.
// The '|' character is used to separate extended property name and its output format.
string value = extendedData["SUM_SQMI_A|F2"];
// Format string with number of the extended properties.
string value = extendedData["{CNTRY_NAME} Miles: {SUM_SQMI_A|F2}, KM: {SUM_SQKM_A|F1}"];</code></pre>
<pre><code class="lang-csharp">' Using of the single extended property name.
Dim value as String = extendedData("CNTRY_NAME")
' Using of the formatted extended property.
' The '|' character is used to separate extended property name and its output format.
Dim value as String = extendedData("SUM_SQMI_A|F2")
Format string with number of the extended properties.
Dim value as String = extendedData("{CNTRY_NAME} Miles: {SUM_SQMI_A|F2}, KM: {SUM_SQKM_A|F1}")</code></pre>
this[string]
Gets value from object using format string.
Declaration
public object this[string format] { get; set; }
Parameters
format
Format string.
Property Value
Formatted value.
Example
Format string can be specified in a few different ways: as simple name of the extended property, as formatted extended property, or as format string which can use number of the extended properties.
// Using of the single extended property name.
string value = extendedData["CNTRY_NAME"];
// Using of the formatted extended property.
// The '|' character is used to separate extended property name and its output format.
string value = extendedData["SUM_SQMI_A|F2"];
// Format string with number of the extended properties.
string value = extendedData["{CNTRY_NAME} Miles: {SUM_SQMI_A|F2}, KM: {SUM_SQKM_A|F1}"];</code></pre>
<pre><code class="lang-csharp">' Using of the single extended property name.
Dim value as String = extendedData("CNTRY_NAME")
' Using of the formatted extended property.
' The '|' character is used to separate extended property name and its output format.
Dim value as String = extendedData("SUM_SQMI_A|F2")
Format string with number of the extended properties.
Dim value as String = extendedData("{CNTRY_NAME} Miles: {SUM_SQMI_A|F2}, KM: {SUM_SQKM_A|F1}")</code></pre>
Methods
Clone()
Clones current instance.
GetValue(string)
Gets value of the property.
HasValue(string)
Gets value which indicates whether extended data contains specified property.
SetDefaults()
Set default value to every extended property.
Declaration
public void SetDefaults()
SetValue(string, object)
Sets value of the property.
SetValue(string, object, bool)
Sets value of the property.
Events
ExtendedPropertyChanged
Occurs when extended property changed in the extended data.
Declaration
public event EventHandler<ExtendedPropertyChangedEventArgs> ExtendedPropertyChanged
Event Value
PropertyChanged
Occurs when property changed. Implemented for binding.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements