Class SfGraphics
Represents drawing graphics for creating custom shapes.
Inheritance
Namespace: Syncfusion.SfDiagram.XForms
Assembly: Syncfusion.SfDiagram.XForms.dll
Syntax
public class SfGraphics : Object
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> |
Methods
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 B�zier 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. |
Xamarin.Forms.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<Xamarin.Forms.Point> | points | Collection of Point structures that represent the points to connect. |
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. |
Xamarin.Forms.Rectangle | rect | A Rectangle structure that represents the rectangle to draw. |