menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DrawingShapeSerializator - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    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
    System.Object
    ShapeSerializator
    DrawingShapeSerializator
    BitmapShapeSerializator
    ChartShapeSerializator
    Inherited Members
    ShapeSerializator.FalseAttributeValue
    ShapeSerializator.GenerateHexColor(Color)
    ShapeSerializator.GeneratePatternName(ExcelGradientPattern)
    ShapeSerializator.GetAnchorValue(ShapeImpl)
    ShapeSerializator.GetDashStyle(ExcelShapeDashLineStyle)
    ShapeSerializator.GetLineStyle(ExcelShapeLineStyle)
    ShapeSerializator.GetOpacityFormat(Double)
    ShapeSerializator.GetPresetString(ExcelGradientPreset)
    ShapeSerializator.IsEmptyColor(Color)
    ShapeSerializator.PrepareGradientDegree(Double)
    ShapeSerializator.RemovePrecedingZeroes(String)
    ShapeSerializator.SerializeClientData(XmlWriter, ShapeImpl, String)
    ShapeSerializator.SerializeClientDataAdditional(XmlWriter, ShapeImpl)
    ShapeSerializator.SerializeFill(XmlWriter, ShapeImpl, WorksheetDataHolder, RelationCollection)
    ShapeSerializator.SerializeFillCommon(XmlWriter, TextBoxShapeBase)
    ShapeSerializator.SerializeGradientFill(XmlWriter, TextBoxShapeBase)
    ShapeSerializator.SerializeGradientFillCommon(XmlWriter, TextBoxShapeBase)
    ShapeSerializator.SerializeLine(XmlWriter, TextBoxShapeBase, FileDataHolder, RelationCollection)
    ShapeSerializator.SerializePatternFill(XmlWriter, TextBoxShapeBase, FileDataHolder, RelationCollection)
    ShapeSerializator.SerializePatternLine(XmlWriter, TextBoxShapeBase, FileDataHolder, RelationCollection)
    ShapeSerializator.SerializePictureFill(XmlWriter, TextBoxShapeBase, FileDataHolder, RelationCollection)
    ShapeSerializator.SerializeSolidFill(XmlWriter, TextBoxShapeBase)
    ShapeSerializator.SerializeTextureFill(XmlWriter, TextBoxShapeBase, FileDataHolder, RelationCollection)
    ShapeSerializator.SerializeUserPicture(XmlWriter, TextBoxShapeBase, FileDataHolder, RelationCollection)
    ShapeSerializator.TrueAttributeValue
    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 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
    ShapeSerializator.Serialize(XmlWriter, ShapeImpl, WorksheetDataHolder, RelationCollection)

    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.

    Overrides
    ShapeSerializator.SerializeShapeType(XmlWriter, Type)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved