Class
StringToPathGeometryConverter

Converts string to the geometry.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public class StringToPathGeometryConverter : IValueConverter

Inheritance: objectStringToPathGeometryConverter

Implements: IValueConverter

Constructors

StringToPathGeometryConverter()

Declaration

cs-api-definition
public StringToPathGeometryConverter()

Methods

Convert(object, Type, object, CultureInfo)

Converts a value.

Declaration

cs-api-definition
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The value produced by the binding source.

targetType

Type

The type of the binding target property.

parameter

object

The converter parameter to use.

culture

CultureInfo

The culture to use in the converter.

Returns

object

A converted value. If the method returns null (Nothing in Visual Basic), the valid null value is used.

Convert(string)

Converts string path data definition to PathGeometry object.

Declaration

cs-api-definition
public Geometry Convert(string path)

Parameters

path

string

String with path data definition.

Returns

Geometry

PathGeometry object created from string definition.

ConvertBack(PathGeometry)

Converts PathGeometry object to its string equivalent.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
public string ConvertBack(PathGeometry geometry)

Parameters

geometry

PathGeometry

Path Geometry object.

Returns

string

String equivalent to PathGeometry contents.

ConvertBack(object, Type, object, CultureInfo)

Converts a binding target value to the source binding values.

Declaration

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The value that the binding target produces.

targetType

Type

The array of types to convert to. The array length indicates the number and types of values that are suggested for the method to return.

parameter

object

The converter parameter to use.

culture

CultureInfo

The culture to use in the converter.

Returns

object

An array of values that have been converted from the target value back to the source values.