Class SfGraphics
Represents drawing graphics for creating custom shapes.
Inheritance
Implements
Namespace: Syncfusion.SfDiagram.iOS
Assembly: Syncfusion.SfDiagram.iOS.dll
Syntax
public class SfGraphics : Object, IDisposable
Constructors
SfGraphics()
Declaration
public SfGraphics()
Properties
GeometryGroup
Gets represents the collection of geometry.
Declaration
public ObservableCollection<Geometry> GeometryGroup { get; }
Property Value
| Type |
|---|
| System.Collections.ObjectModel.ObservableCollection<Geometry> |
Pen
Gets or sets the pen.
Declaration
public Pen Pen { get; set; }
Property Value
| Type | Description |
|---|---|
| Pen | The pen. |
Methods
Dispose()
Dispose the native object.
Declaration
public void Dispose()
Dispose(Boolean)
virtual dispose method.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing | disposing value. |
DrawArc(Pen, Single, Single, Single, Single, Single, Single)
Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.
Declaration
public void DrawArc(Pen pen, float x, float y, float width, float height, float startAngle, float sweepAngle)
Parameters
| Type | Name | Description |
|---|---|---|
| Pen | pen | Pen that determines the color, width, and style of the arc. |
| System.Single | x | The x-coordinate of the upper-left corner of the rectangle that defines the ellipse. |
| System.Single | y | The y-coordinate of the upper-left corner of the rectangle that defines the ellipse. |
| System.Single | width | Width of the rectangle that defines the ellipse. |
| System.Single | height | Height of the rectangle that defines the ellipse. |
| System.Single | startAngle | Angle in degrees measured clockwise from the x-axis to the starting point of the arc. |
| System.Single | sweepAngle | Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc. |
DrawCubicBezier(Pen, Single, Single, Single, Single, Single, Single)
Draws a Bezier cubic defined by three ordered pairs of coordinates that represent points.
Declaration
public void DrawCubicBezier(Pen pen, float x1, float y1, float x2, float y2, float x3, float y3)
Parameters
| Type | Name | Description |
|---|---|---|
| Pen | pen | Pen that determines the color, width, and style of the curve. |
| System.Single | x1 | The x-coordinate of the first control point of the curve. |
| System.Single | y1 | The y-coordinate of the first control point of the curve. |
| System.Single | x2 | The x-coordinate of the second control point of the curve. |
| System.Single | y2 | The y-coordinate of the second control point of the curve. |
| System.Single | x3 | The x-coordinate of the ending point of the curve. |
| System.Single | y3 | The y-coordinate of the ending point of the curve. |
DrawEllipse(Pen, Rectangle)
Draws an ellipse specified by a bounding Rectangle structure.
Declaration
public void DrawEllipse(Pen pen, Rectangle rect)
Parameters
| Type | Name | Description |
|---|---|---|
| Pen | pen | Pen that determines the color, width, and style of the ellipse. |
| System.Drawing.Rectangle | rect | Rectangle structure that defines the boundaries of the ellipse. |
DrawLines(Pen, IList<Point>)
Draws a series of line segments that connect a collection of Point structures.
Declaration
public void DrawLines(Pen pen, IList<Point> points)
Parameters
| Type | Name | Description |
|---|---|---|
| Pen | pen | A Pen that determines the color, width, and style of the line segments. |
| System.Collections.Generic.IList<System.Drawing.Point> | points | Collection of Point structures that represent the points to connect. |
DrawPath(Pen, SfGraphicsPath)
Draws the path.
Declaration
public void DrawPath(Pen pen, SfGraphicsPath path)
Parameters
| Type | Name | Description |
|---|---|---|
| Pen | pen | Pen value. |
| SfGraphicsPath | path | Path value. |
DrawPath(SfGraphicsPath)
Draws a specified graphical path.
Declaration
public void DrawPath(SfGraphicsPath path)
Parameters
| Type | Name | Description |
|---|---|---|
| SfGraphicsPath | path | Graphical path to draw. |
DrawQuadraticBezier(Pen, Single, Single, Single, Single)
Draws a quadratic bezier defined by three ordered pairs of coordinates that represent points.
Declaration
public void DrawQuadraticBezier(Pen pen, float x1, float y1, float x2, float y2)
Parameters
| Type | Name | Description |
|---|---|---|
| Pen | pen | Pen that determines the color, width, and style of the curve. |
| System.Single | x1 | The x-coordinate of the first control point of the curve. |
| System.Single | y1 | The y-coordinate of the first control point of the curve. |
| System.Single | x2 | The x-coordinate of the second control point of the curve. |
| System.Single | y2 | The y-coordinate of the second control point of the curve. |
DrawRectangle(Pen, Rectangle)
Draws a rectangle specified by a Rectangle structure.
Declaration
public void DrawRectangle(Pen pen, Rectangle rect)
Parameters
| Type | Name | Description |
|---|---|---|
| Pen | pen | A pen that determines the color, width, and style of the rectangle. |
| System.Drawing.Rectangle | rect | A Rectangle structure that represents the rectangle to draw. |
Finalize()
Finalizes an instance of the SfGraphics class. Destructor for SfGraphics
Declaration
protected override void Finalize()