Class SfGraphicsPath
Represents a series of connected lines and curves.
Namespace: Syncfusion.SfDiagram.XForms
Assembly: Syncfusion.SfDiagram.XForms.dll
Syntax
public class SfGraphicsPath : Geometry
Constructors
SfGraphicsPath()
Declaration
public SfGraphicsPath()
Properties
IsClosePath
Gets or sets a value indicating whether gets or sets the value whether it is a closepath or not.
Declaration
public bool IsClosePath { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
SegmentGroup
Gets represents the collection of graphical segments.
Declaration
public ObservableCollection<Segment> SegmentGroup { get; }
Property Value
| Type |
|---|
| System.Collections.ObjectModel.ObservableCollection<Segment> |
Methods
AddArc(Single, Single, Single, Single, Single, Single)
Adds an ellipse to the current path.
Declaration
public void AddArc(float x, float y, float width, float height, float startangle, float sweepangle)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | x | The x-coordinate of the upper-left corner of the rectangular region that defines the ellipse from which the arc is drawn. |
| System.Single | y | The y-coordinate of the upper-left corner of the rectangular region that defines the ellipse from which the arc is drawn. |
| System.Single | width | The width of the rectangular region that defines the ellipse from which the arc is drawn. |
| System.Single | height | The height of the rectangular region that defines the ellipse from which the arc is drawn. |
| System.Single | startangle | The starting angle of the arc, measured in degrees clockwise from the x-axis. |
| System.Single | sweepangle | The angle between startAngle and the end of the arc. |
AddEllipse(Rectangle)
Adds the ellipse.
Declaration
public void AddEllipse(Rectangle rect)
Parameters
| Type | Name | Description |
|---|---|---|
| Xamarin.Forms.Rectangle | rect | Rectangle. |
AddLines(Point[])
Appends a series of connected line segments to the current path.
Declaration
public void AddLines(Point[] points)
Parameters
| Type | Name | Description |
|---|---|---|
| Xamarin.Forms.Point[] | points | An array of Point structures that represents the points that define the line segments to add. |
AddRect(Rectangle)
Adds a rectangle to this path.
Declaration
public void AddRect(Rectangle rect)
Parameters
| Type | Name | Description |
|---|---|---|
| Xamarin.Forms.Rectangle | rect | A Rectangle that represents the rectangle to add. |
AddRoundRect(Rectangle, Double, Double)
Adds a round rectangle to this path.
Declaration
public void AddRoundRect(Rectangle rect, double cornerwidth, double cornerheight)
Parameters
| Type | Name | Description |
|---|---|---|
| Xamarin.Forms.Rectangle | rect | A Rectangle that represents the rectangle to add. |
| System.Double | cornerwidth | Corner width of the round corner rectangle. |
| System.Double | cornerheight | Corner height of the round corner rectangle. |
CubicTo(Single, Single, Single, Single, Single, Single)
Cubics to.
Declaration
public void CubicTo(float x1, float y1, float x2, float y2, float x3, float y3)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | x1 | x1. |
| System.Single | y1 | y1. |
| System.Single | x2 | x2. |
| System.Single | y2 | y2. |
| System.Single | x3 | x3. |
| System.Single | y3 | y3. |
LineTo(Single, Single)
Add the line to the position.
Declaration
public void LineTo(float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | x | x. |
| System.Single | y | y. |
MoveTo(Single, Single)
Move the current point.
Declaration
public void MoveTo(float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | x | x. |
| System.Single | y | y. |
QuadTo(Single, Single, Single, Single)
Draw the quadratic curve.
Declaration
public void QuadTo(float x1, float y1, float x2, float y2)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | x1 | x1. |
| System.Single | y1 | y1. |
| System.Single | x2 | x2. |
| System.Single | y2 | y2. |