Class GeometryParser
Helper class that parses geometries to strings and strings to geometries. Note that strings are created for serialization purposes and cannot be recognized as Geometry Data by the WPF XAML parser.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public static class GeometryParser
Methods
GetGeometry(String)
Main parser routine, which loops over each char in received string, and performs actions according to command/parameter being passed.
Declaration
public static Geometry GetGeometry(string path)
Parameters
System.String
path
String with path data definition. |
Returns
System.Windows.Media.Geometry
PathGeometry object created from string definition. |
GetString(Geometry)
Main back conversion routine - converts PathGeometry object to its string equivalent.
Declaration
public static string GetString(Geometry geometry)
Parameters
System.Windows.Media.Geometry
geometry
Path Geometry object. |
Returns
System.String
String equivalent to PathGeometry contents. |