Class SfGraphicsPath
Represents a series of connected lines and curves.
Implements
Namespace: Syncfusion.SfDiagram.Android
Assembly: Syncfusion.SfDiagram.Android.dll
Syntax
public class SfGraphicsPath : Geometry, IDisposable
Constructors
SfGraphicsPath()
Declaration
public SfGraphicsPath()
Properties
IsClosePath
Gets or sets a value indicating whether gets or sets the value whether it is a close path 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 |
---|---|---|
System.Drawing.Rectangle | rect | rectangle value. |
AddLines(Point[])
Appends a series of connected line segments to the current path.
Declaration
public void AddLines(Point[] points)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.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 |
---|---|---|
System.Drawing.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 |
---|---|---|
System.Drawing.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)
Cubic 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 value. |
System.Single | y1 | y1 value. |
System.Single | x2 | x2 value. |
System.Single | y2 | y2 value. |
System.Single | x3 | x3 value. |
System.Single | y3 | y3 value. |
Dispose()
Dispose the native object.
Declaration
public void Dispose()
Dispose(Boolean)
parameter dispose method.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | disposing value. |
Finalize()
Finalizes an instance of the SfGraphicsPath class.
Declaration
protected override void Finalize()
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 value. |
System.Single | y | y value. |
MoveTo(Single, Single)
Move the current point.
Declaration
public void MoveTo(float x, float y)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | x value. |
System.Single | y | y value. |
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 value. |
System.Single | y1 | y1 value. |
System.Single | x2 | x2 value. |
System.Single | y2 | y2 value. |