Class SplineNode
This node is used to draw spline-like appearance.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class SplineNode : Line, IUnitIndependent, IDispatchNodeEvents, ISerializable, INode, ICloneable, IServiceReferenceHolder, IServiceReferenceProvider, IPropertyObserver, IPropertyContainer, IServiceProvider, IGraphNode, IDeserializationCallback, IDisposable, IEndPointContainer, IGraphEdge
Constructors
SplineNode(SplineNode)
Initializes a new instance of the SplineNode class.
Declaration
public SplineNode(SplineNode src)
Parameters
Type | Name | Description |
---|---|---|
SplineNode | src | The SRC. |
SplineNode(PointF, PointF, PointF)
Initializes a new instance of the SplineNode class.
Declaration
public SplineNode(PointF ptStart, PointF ptEnd, PointF ptControl)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF | ptStart | The start point. |
System.Drawing.PointF | ptEnd | The end point. |
System.Drawing.PointF | ptControl | The control point. |
SplineNode(PointF[])
Initializes a new instance of the SplineNode class.
Declaration
public SplineNode(PointF[] pts)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pts | The points. |
SplineNode(SerializationInfo, StreamingContext)
Initializes a new instance of the SplineNode class.
Declaration
protected SplineNode(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 spline 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[])
Creates node's path with given array of points.
Declaration
protected override GraphicsPath CreateLogicalGraphicsPath(PointF[] pts)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pts | Points to create path from. |
Returns
Type | Description |
---|---|
System.Drawing.Drawing2D.GraphicsPath | Created GraphicsPath, otherwise null. |
Overrides
GetNewPathBounds(PointF[])
Gets the new path points bounds.
Declaration
protected override RectangleF GetNewPathBounds(PointF[] pathPoints)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pathPoints | The path points. |
Returns
Type | Description |
---|---|
System.Drawing.RectangleF | The System.Drawing.RectangleF. |
Overrides
GetPathPoints()
Retrieves array of points needed to construct node's GraphicsPath.
Declaration
protected override PointF[] GetPathPoints()
Returns
Type | Description |
---|---|
System.Drawing.PointF[] | The path points. |
Overrides
UpdateBoundsInfo(RectangleF)
Override base class's(Line) method
Declaration
protected override void UpdateBoundsInfo(RectangleF rcBounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | rcBounds | Updated bounds info. |
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. |