Class BezierCurve
Line node shape with two additional controlPoints to change line flexure. Can be used as connector.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class BezierCurve : Line, IUnitIndependent, IDispatchNodeEvents, ISerializable, INode, ICloneable, IServiceReferenceHolder, IServiceReferenceProvider, IPropertyObserver, IPropertyContainer, IServiceProvider, IGraphNode, IDeserializationCallback, IDisposable, IEndPointContainer, IGraphEdge
Constructors
BezierCurve(BezierCurve)
Initializes a new instance of the BezierCurve class.
Declaration
public BezierCurve(BezierCurve src)
Parameters
Type | Name | Description |
---|---|---|
BezierCurve | src | The SRC. |
BezierCurve(PointF, PointF)
Initializes a new instance of the BezierCurve class.
Declaration
public BezierCurve(PointF ptStart, PointF ptEnd)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF | ptStart | The start point. |
System.Drawing.PointF | ptEnd | The end point. |
BezierCurve(PointF, PointF, PointF, PointF)
Initializes a new instance of the BezierCurve class.
Declaration
public BezierCurve(PointF ptStart, PointF ptCtrStart, PointF ptEnd, PointF ptCtrlEnd)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF | ptStart | The start point. |
System.Drawing.PointF | ptCtrStart | The first control point. |
System.Drawing.PointF | ptEnd | The end point. |
System.Drawing.PointF | ptCtrlEnd | The second control point. |
BezierCurve(PointF[])
Initializes a new instance of the BezierCurve class.
Declaration
public BezierCurve(PointF[] pts)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pts | The array of points. |
BezierCurve(SerializationInfo, StreamingContext)
Initializes a new instance of the BezierCurve class.
Declaration
protected BezierCurve(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The serialization Info. |
System.Runtime.Serialization.StreamingContext | context | The streaming context. |
Methods
CanDrawControlPoints()
Determines whether this instance can draw control points.
Declaration
public override bool CanDrawControlPoints()
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
CanEditControlPoint()
Determines whether this node can edit control points.
Declaration
public override bool CanEditControlPoint()
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
CanEditSegment()
Determines whether this node can edit segment.
Declaration
public override bool CanEditSegment()
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
CanEditVertexPoint()
Determines whether this node can edit vertex point.
Declaration
public override bool CanEditVertexPoint()
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
CanMoveHandle(IHandle, PointF)
Determines whether this node allow move it handle.
Declaration
public override bool CanMoveHandle(IHandle handle, PointF ptNewLocation)
Parameters
Type | Name | Description |
---|---|---|
IHandle | handle | The handle to move. |
System.Drawing.PointF | ptNewLocation | The new endpoint location to check. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
Clone()
Clones this instance.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | The cloned object. |
Overrides
CreateLogicalGraphicsPath(PointF[])
Create the logical graphics path.
Declaration
protected override GraphicsPath CreateLogicalGraphicsPath(PointF[] pts)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pts | The path points. |
Returns
Type | Description |
---|---|
System.Drawing.Drawing2D.GraphicsPath | The graphics path. |
Overrides
DrawControlPoints(Graphics)
Draws the control points.
Declaration
public override void DrawControlPoints(Graphics gfx)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | Graphics to draw on. |
Overrides
GetPathPoints()
Gets the path points.
Declaration
protected override PointF[] GetPathPoints()
Returns
Type | Description |
---|---|
System.Drawing.PointF[] | The path points. |
Overrides
UpdateBoundsInfo(RectangleF)
Updates the Pin position, pin offset and size from new bounds rectangle.
Declaration
protected override void UpdateBoundsInfo(RectangleF rcBounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | rcBounds | New bounds rectangle. |
Overrides
UpdateGraphicsPath(PointF[])
Updates the graphics path form points.
Declaration
protected override void UpdateGraphicsPath(PointF[] pts)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pts | The points. |