WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SvgGraph

    Show / Hide Table of Contents

    Class SvgGraph

    Class containing Svg Graph.

    Inheritance
    System.Object
    SvgGraph
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.SVG.IO
    Assembly: Syncfusion.Diagram.Base.dll
    Syntax
    public class SvgGraph

    Constructors

    SvgGraph()

    Initializes a new instance of the SvgGraph class.

    Declaration
    public SvgGraph()

    SvgGraph(Boolean)

    Initializes a new instance of the SvgGraph class.

    Declaration
    public SvgGraph(bool generateDefault)
    Parameters
    Type Name Description
    System.Boolean generateDefault

    if set to true [generate default].

    Properties

    Document

    Gets the document.

    Declaration
    public SvgDocument Document { get; }
    Property Value
    Type Description
    SvgDocument

    The document.

    Transform

    Gets or sets the transform.

    Declaration
    public Matrix Transform { get; set; }
    Property Value
    Type Description
    System.Drawing.Drawing2D.Matrix

    The transform.

    Methods

    Clear(Color)

    Clears the specified color.

    Declaration
    public void Clear(Color color)
    Parameters
    Type Name Description
    System.Drawing.Color color

    The color.

    DrawDocument(Graphics)

    Draws the document.

    Declaration
    public void DrawDocument(Graphics g)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    The graphics.

    DrawEllipse(Pen, Single, Single, Single, Single)

    Draws the ellipse.

    Declaration
    public void DrawEllipse(Pen pen, float x, float y, float width, float height)
    Parameters
    Type Name Description
    System.Drawing.Pen pen

    The pen.

    System.Single x

    The x.

    System.Single y

    The y.

    System.Single width

    The width.

    System.Single height

    The height.

    DrawImage(Image, Single, Single, Single, Single)

    Draws the image.

    Declaration
    public void DrawImage(Image img, float x, float y, float width, float height)
    Parameters
    Type Name Description
    System.Drawing.Image img

    The img.

    System.Single x

    The x.

    System.Single y

    The y.

    System.Single width

    The width.

    System.Single height

    The height.

    DrawLine(Pen, Single, Single, Single, Single)

    Draws the line.

    Declaration
    public void DrawLine(Pen pen, float x1, float y1, float x2, float y2)
    Parameters
    Type Name Description
    System.Drawing.Pen pen

    The pen.

    System.Single x1

    The x1.

    System.Single y1

    The y1.

    System.Single x2

    The x2.

    System.Single y2

    The y2.

    DrawLines(Pen, PointF[])

    Draws the lines.

    Declaration
    public void DrawLines(Pen pen, PointF[] points)
    Parameters
    Type Name Description
    System.Drawing.Pen pen

    The pen.

    System.Drawing.PointF[] points

    The points.

    DrawPath(Pen, GraphicsPath)

    Draws the path.

    Declaration
    public void DrawPath(Pen pen, GraphicsPath gp)
    Parameters
    Type Name Description
    System.Drawing.Pen pen

    The pen.

    System.Drawing.Drawing2D.GraphicsPath gp

    The graphics path.

    DrawPolygon(Pen, PointF[])

    Draws the polygon.

    Declaration
    public void DrawPolygon(Pen pen, PointF[] points)
    Parameters
    Type Name Description
    System.Drawing.Pen pen

    The pen.

    System.Drawing.PointF[] points

    The points.

    DrawRectangle(Pen, Single, Single, Single, Single)

    Draws the rectangle.

    Declaration
    public void DrawRectangle(Pen pen, float x, float y, float width, float height)
    Parameters
    Type Name Description
    System.Drawing.Pen pen

    The pen.

    System.Single x

    The x.

    System.Single y

    The y.

    System.Single width

    The width.

    System.Single height

    The height.

    DrawString(String, Font, Brush, Single, Single)

    Draws the string.

    Declaration
    public void DrawString(string text, Font font, Brush br, float x, float y)
    Parameters
    Type Name Description
    System.String text

    The text.

    System.Drawing.Font font

    The font.

    System.Drawing.Brush br

    The brush.

    System.Single x

    The x.

    System.Single y

    The y.

    FillEllipse(Brush, Single, Single, Single, Single)

    Fills the ellipse.

    Declaration
    public void FillEllipse(Brush br, float x, float y, float width, float height)
    Parameters
    Type Name Description
    System.Drawing.Brush br

    The brush.

    System.Single x

    The x.

    System.Single y

    The y.

    System.Single width

    The width.

    System.Single height

    The height.

    FillPath(Brush, GraphicsPath)

    Fills the path.

    Declaration
    public void FillPath(Brush br, GraphicsPath gp)
    Parameters
    Type Name Description
    System.Drawing.Brush br

    The brush.

    System.Drawing.Drawing2D.GraphicsPath gp

    The graphics path.

    FillPolygon(Brush, PointF[])

    Fills the polygon.

    Declaration
    public void FillPolygon(Brush br, PointF[] points)
    Parameters
    Type Name Description
    System.Drawing.Brush br

    The brush.

    System.Drawing.PointF[] points

    The points.

    FillRectangle(Brush, Single, Single, Single, Single)

    Fills the rectangle.

    Declaration
    public void FillRectangle(Brush br, float x, float y, float width, float height)
    Parameters
    Type Name Description
    System.Drawing.Brush br

    The br.

    System.Single x

    The x.

    System.Single y

    The y.

    System.Single width

    The width.

    System.Single height

    The height.

    LoadDocument(String)

    Loads the document.

    Declaration
    public void LoadDocument(string filename)
    Parameters
    Type Name Description
    System.String filename

    The filename.

    ResetClip()

    Resets the clip.

    Declaration
    public void ResetClip()

    SaveDocument(String)

    Saves the document.

    Declaration
    public void SaveDocument(string filename)
    Parameters
    Type Name Description
    System.String filename

    The filename.

    SetClip(GraphicsPath)

    Sets the clip.

    Declaration
    public void SetClip(GraphicsPath gp)
    Parameters
    Type Name Description
    System.Drawing.Drawing2D.GraphicsPath gp

    The graphics path.

    TranslateTransform(Single, Single)

    Translates the transform.

    Declaration
    public void TranslateTransform(float dx, float dy)
    Parameters
    Type Name Description
    System.Single dx

    The dx.

    System.Single dy

    The dy.

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