Class HFImageSerializator
This class is responsible for header/footer image 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 HFImageSerializator : ShapeSerializator
Constructors
HFImageSerializator()
Initializes a new instance of HFimageSerializator Class.
Declaration
public HFImageSerializator()
Methods
GetHeight(BitmapShapeImpl)
Gets height of the shape.
Declaration
protected virtual int GetHeight(BitmapShapeImpl bitmap)
Parameters
Type | Name | Description |
---|---|---|
BitmapShapeImpl | bitmap |
Returns
Type |
---|
System.Int32 |
GetWidth(BitmapShapeImpl)
Gets width of the shape.
Declaration
protected virtual int GetWidth(BitmapShapeImpl bitmap)
Parameters
Type | Name | Description |
---|---|---|
BitmapShapeImpl | bitmap |
Returns
Type |
---|
System.Int32 |
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
SerializeImageData(XmlWriter, ShapeImpl, WorksheetDataHolder, String, Boolean, RelationCollection)
Serializes imageData xml tag.
Declaration
protected void SerializeImageData(XmlWriter writer, ShapeImpl shape, WorksheetDataHolder holder, string title, bool useRawFormat, RelationCollection relations)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer | XmlWriter to serialize into. |
ShapeImpl | shape | Shape to get data to serialize from. |
WorksheetDataHolder | holder | Parent worksheet data holder. |
System.String | title | |
System.Boolean | useRawFormat | |
RelationCollection | relations |
SerializePicture(ShapeImpl, WorksheetDataHolder, Boolean, RelationCollection)
This method is used to serialize picture item.
Declaration
protected virtual string SerializePicture(ShapeImpl shape, WorksheetDataHolder holder, bool useRawFormat, RelationCollection relations)
Parameters
Type | Name | Description |
---|---|---|
ShapeImpl | shape | Shape to serialize. |
WorksheetDataHolder | holder | Parent worksheet data holder. |
System.Boolean | useRawFormat | |
RelationCollection | relations |
Returns
Type | Description |
---|---|
System.String | String value containing relation id. |
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. |