Class BitmapShapeSerializator
This class is used for picture shapes serialization.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.XlsIO.Implementation.XmlSerialization.Shapes
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class BitmapShapeSerializator : DrawingShapeSerializator
Constructors
BitmapShapeSerializator()
Declaration
public BitmapShapeSerializator()
Methods
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
SerializePictureFile(WorksheetDataHolder, BitmapShapeImpl, RelationCollection)
Serializes picture file and creates necessary relations.
Declaration
public string SerializePictureFile(WorksheetDataHolder holder, BitmapShapeImpl picture, RelationCollection vmlRelations)
Parameters
Type | Name | Description |
---|---|---|
WorksheetDataHolder | holder | Object that holds file data. |
BitmapShapeImpl | picture | Picture to save into file. |
RelationCollection | vmlRelations |
Returns
Type | Description |
---|---|
System.String | Relation id of the generated picture item. |
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. |