Class ShapeParser
This class is responsible for vml shape and shape type parsing.
Namespace: Syncfusion.XlsIO.Implementation.XmlReaders.Shapes
Assembly: Syncfusion.XlsIO.NET.dll
Syntax
public abstract class ShapeParser : Object
Constructors
ShapeParser()
Declaration
protected ShapeParser()
Methods
ParseAnchor(XmlReader, ShapeImpl)
Parses shape's anchor.
Declaration
protected void ParseAnchor(XmlReader reader, ShapeImpl shape)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | XmlReader to get anchor information from. |
ShapeImpl | shape | Shape to set anchor to. |
ParseShape(XmlReader, ShapeImpl, RelationCollection, String)
Parses shape and adds it to all necessary shapes collections.
Declaration
public abstract bool ParseShape(XmlReader reader, ShapeImpl defaultShape, RelationCollection relations, string parentItemPath)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | XmlReader to get shape from. |
ShapeImpl | defaultShape | Default shape that must be cloned to get resulting shape. |
RelationCollection | relations | Corresponding relations collection. |
System.String | parentItemPath | Path to the parent item (item which holds all these xml tags). |
Returns
Type |
---|
System.Boolean |
ParseShapeType(XmlReader, ShapeCollectionBase)
Extracts shape type settings from the reader and creates shape with default settings.
Declaration
public abstract ShapeImpl ParseShapeType(XmlReader reader, ShapeCollectionBase shapes)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | XmlReader to get general shape settings from. |
ShapeCollectionBase | shapes |
Returns
Type | Description |
---|---|
ShapeImpl | Shape with default settings without adding it to any collection. |
ReadNodeAsStream(XmlReader)
Saves current node into stream.
Declaration
public static Stream ReadNodeAsStream(XmlReader reader)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | Reader to get node from. |
Returns
Type | Description |
---|---|
System.IO.Stream | Stream with current node's data. |
ReadNodeAsStream(XmlReader, Boolean)
Saves current node into stream.
Declaration
public static Stream ReadNodeAsStream(XmlReader reader, bool writeNamespaces)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | Reader to get node from. |
System.Boolean | writeNamespaces |
Returns
Type | Description |
---|---|
System.IO.Stream | Stream with current node's data. |
SplitStyle(String)
Splits style into properties dictionary.
Declaration
protected Dictionary<string, string> SplitStyle(string styleValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | styleValue | Value to split. |
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.String> | Dictionary with properties, key - property name, value - property value. |
WriteNodeFromStream(XmlWriter, Stream)
Reads node from the stream and writes it into XmlWriter.
Declaration
public static void WriteNodeFromStream(XmlWriter writer, Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer | Writer to write node into. |
System.IO.Stream | stream | Stream to get node from. |
WriteNodeFromStream(XmlWriter, Stream, Boolean)
Reads node from the stream and writes it into XmlWriter.
Declaration
public static void WriteNodeFromStream(XmlWriter writer, Stream stream, bool writeNamespaces)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer | Writer to write node into. |
System.IO.Stream | stream | Stream to get node from. |
System.Boolean | writeNamespaces |