Click or drag to resize
AB4D logo

ReaderSvg Methods

The ReaderSvg type exposes the following members.

Methods
  NameDescription
Public methodCode exampleGetCustomProperties(Object)
Returns a Dictionary of custom properties defined for the object with objectName (only custom properties defined in Microsoft Visio are supported).
Public methodCode exampleGetCustomProperties(String)
Returns a Dictionary of custom properties defined for the object with objectName (only custom properties defined in Microsoft Visio are supported).
Public methodCode exampleGetCustomPropertiesDataTable
Returns a System.Data.DataTable with all custom properties defined in svg file (only custom properties defined in Microsoft Visio are supported).
Public methodCode exampleGetElementsForLayerName
Returns a List of UIElements that are assigned to the layer with layerName (layers can be only defined in Microsoft Visio).
Public methodGetElementSvgText
GetElementSvgText can be called after the svg file has been read. It returns svg text of the element with with the specified elementName and elementNameType. If the element is not found, null is returned.
Public methodCode exampleGetLayerNames
Returns a List of layer names that were defined in Microsoft Visio.
Public methodGetObjectName
Gets the name of the object read with ReadSvg. This is the opposite as using NamedObjects dictionary. Returns null if object is not found or it does not have a name defined.
Public methodCode exampleGetObjectsWithCustomProperties
Returns List of objects that have custom properties defined (only custom properties defined in Microsoft Visio are supported).
Public methodCode exampleGetXaml
Gets xaml of the last read svg or svgz file with the default setting for WPF.
Public methodCode exampleGetXaml(BaseXamlWriterSettings)
Gets xaml of the last read svg or svgz.
Public methodCode exampleRead(Stream)
Reads svg file from stream - useful for reading svg files from resources. The file is read as Shapes (Canvas, Path, Ellipse, etc.).
Public methodCode exampleRead(String)
Reads svg or svgz file from file system or from online source. The file is read as Shapes (Canvas, Path, Ellipse, etc.).
Public methodCode exampleReadGeometry(Stream)
Reads svg or svgz file and returns System.Windows.Controls.Image with elements as Drawings (DrawingGeometry, EllipseGeometry, GlyphRunDrawing etc.) with no optimization.
Public methodCode exampleReadGeometry(String)
Reads svg or svgz file and returns System.Windows.Controls.Image with elements as Drawings (DrawingGeometry, EllipseGeometry, GlyphRunDrawing etc.) with no optimization.
Public methodCode exampleReadGeometry(Stream, GeometrySettings)
Reads svg or svgz file and returns System.Windows.Controls.Image with elements as Drawings (DrawingGeometry, EllipseGeometry, GlyphRunDrawing etc.).
Public methodCode exampleReadGeometry(String, GeometrySettings)
Reads svg or svgz file and returns System.Windows.Controls.Image with elements as Drawings (DrawingGeometry, EllipseGeometry, GlyphRunDrawing etc.).
Public methodCode exampleRenderToBitmap(Brush)
Renders the read svg objects into bitmap. Bitmap will have the same size as read svg object and will be rendered at 96 dpi.
Public methodCode exampleRenderToBitmap(Brush, Int32)
Renders the read svg objects into bitmap. Bitmap will have the same size as read svg object and will be rendered at dpi specified in the parameter.
Public methodCode exampleRenderToBitmap(Int32, Int32, Brush)
Renders the read svg objects into bitmap with custom width and height and at 96 dpi.
Public methodCode exampleRenderToBitmap(Int32, Int32, Int32, Brush)
Renders the read svg objects into bitmap with custom width and height and at dpi specified with parameter to the method.
Public methodTransform
Transform method transforms all the coordinates, sizes and other values in the last read Viewbox with using transformation.
Public methodTransformFromPixelsToMM
TransformFromPixelsToMM method transforms all the coordinates, sizes and other values in the last read Viewbox in such a way that it converts all units in pixels into millimeters with using specified dpi setting.
Top
See Also