Class DrawingShapeSerializator
This serializator use to serialize shapes in DrawingML 2007 format, when shape is not supported, but it was extracted from Excel 2007 document and we can preserve it.
Inheritance
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation.XmlSerialization.Shapes
Assembly: Syncfusion.XlsIO.Portable.dll
Syntax
public class DrawingShapeSerializator : ShapeSerializator
Constructors
DrawingShapeSerializator()
Declaration
public DrawingShapeSerializator()
Methods
GetEditAsValue(ShapeImpl)
Returns editAs attribute value.
Declaration
public static string GetEditAsValue(ShapeImpl shape)
Parameters
Type | Name | Description |
---|---|---|
ShapeImpl | shape | Shape to get settings from. |
Returns
Type | Description |
---|---|
System.String | String value of editAs attribute for the shape. |
Serialize(XmlWriter, ShapeImpl, WorksheetDataHolder, RelationCollection)
This method serializes specified shape into specified writer.
Declaration
public override void Serialize(XmlWriter writer, ShapeImpl shape, WorksheetDataHolder holder, RelationCollection vmlRelations)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer | XmlWriter to serialize shape settings into. |
ShapeImpl | shape | Shape to serialize. |
WorksheetDataHolder | holder | Parent worksheet data holder. |
RelationCollection | vmlRelations |
Overrides
SerializeFill(XmlWriter, ShapeImpl, FileDataHolder, RelationCollection)
Serializes shape's fill.
Declaration
protected void SerializeFill(XmlWriter writer, ShapeImpl shape, FileDataHolder holder, RelationCollection relations)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer | XmlWriter to serialize into. |
ShapeImpl | shape | Shape to serialize fill for. |
FileDataHolder | holder | FileDataHolder object. |
RelationCollection | relations | Drawing relations. |
SerializeForm(XmlWriter, String, String, Int32, Int32, Int32, Int32)
Serializes Transform2D tag (xfrm).
Declaration
public static void SerializeForm(XmlWriter writer, string xmlOuterNamespace, string xmlInnerNamespace, int x, int y, int cx, int cy)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer | XmlWriter to serialize into. |
System.String | xmlOuterNamespace | Namespace for main (outer) tag. |
System.String | xmlInnerNamespace | Namespace for subtags (inner). |
System.Int32 | x | X coordinate of the form. |
System.Int32 | y | X coordinate of the form. |
System.Int32 | cx | Width of the form. |
System.Int32 | cy | Height of the form. |
SerializeForm(XmlWriter, String, String, Int32, Int32, Int32, Int32, IShape)
Serializes the form.
Declaration
public static void SerializeForm(XmlWriter writer, string xmlOuterNamespace, string xmlInnerNamespace, int x, int y, int cx, int cy, IShape shape)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer | The writer. |
System.String | xmlOuterNamespace | The XML outer namespace. |
System.String | xmlInnerNamespace | The XML inner namespace. |
System.Int32 | x | The x. |
System.Int32 | y | The y. |
System.Int32 | cx | The cx. |
System.Int32 | cy | The cy. |
IShape | shape | The shape. |
SerializeNVCanvasProperties(XmlWriter, ShapeImpl, WorksheetDataHolder, String)
Serializes non visual canvas properties.
Declaration
protected void SerializeNVCanvasProperties(XmlWriter writer, ShapeImpl shape, WorksheetDataHolder holder, string drawingsNamespace)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer | XmlWriter to serialize into. |
ShapeImpl | shape | Shape to serialize properties for. |
WorksheetDataHolder | holder | Object that stores data of the parent worksheet. |
System.String | drawingsNamespace | Xml namespace to use. |
SerializePresetGeometry(XmlWriter, String)
Serializes prstGeom xml tag.
Declaration
protected void SerializePresetGeometry(XmlWriter writer, string type)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer | XmlWriter to serialize into. |
System.String | type |
SerializeShapeType(XmlWriter, Type)
This method serializes general shape settings (shape type) into specified XmlWriter.
Declaration
public override void SerializeShapeType(XmlWriter writer, Type shapeType)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer | XmlWriter to write shape type into. |
System.Type | shapeType | Type of the shape that is going to be serialized. |