menu

WinForms

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

    Show / Hide Table of Contents

    Class ToSvg

    Provides the methods to draw into SVG image.

    Inheritance
    System.Object
    ToSvg
    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.Windows.Forms.Chart
    Assembly: Syncfusion.Chart.Base.dll
    Syntax
    public class ToSvg

    Constructors

    ToSvg()

    Initializes a new instance of the ToSvg class.

    Declaration
    public ToSvg()

    Methods

    GetRealGraphics(Size)

    Gets the System.Drawing.Graphics for SVG by the specified size.

    Declaration
    public Graphics GetRealGraphics(Size size)
    Parameters
    Type Name Description
    System.Drawing.Size size

    The size.

    Returns
    Type Description
    System.Drawing.Graphics

    Returns Graphics object.

    Save(Stream)

    Saves SVG document in the specified stream.

    Declaration
    public void Save(Stream stream)
    Parameters
    Type Name Description
    System.IO.Stream stream

    The stream.

    Save(String)

    Saves SVG document the specified name.

    Declaration
    public void Save(string name)
    Parameters
    Type Name Description
    System.String name

    The name.

    SetSize(Size)

    Method to set the size for SVG image

    Declaration
    public void SetSize(Size size)
    Parameters
    Type Name Description
    System.Drawing.Size size

    The size.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved