Class PencilBase
Base class for free-hand drawing.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Windows.dll
Syntax
public class PencilBase : PolyLineBase, IDisposable
Constructors
PencilBase(DiagramController, String)
Declaration
public PencilBase(DiagramController controller, string name)
Parameters
Type | Name | Description |
---|---|---|
DiagramController | controller | |
System.String | name |
Methods
CompleteAction(PointF[])
Called when the paint is completed.
Declaration
protected override Node CompleteAction(PointF[] ptsShape)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | ptsShape | points to create polyline derived node from |
Returns
Type | Description |
---|---|
Node | The pencil tool |
Overrides
CreateNode(PointF[])
Create the Node for painted line.
Declaration
protected override Node CreateNode(PointF[] pts)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pts | points to create polyline derived node from. |
Returns
Type | Description |
---|---|
Node | The line base. |
Overrides
CreatePath(PointF[])
Draw the graphics path for particular points.
Declaration
protected override GraphicsPath CreatePath(PointF[] pts)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pts | points to create path from |
Returns
Type | Description |
---|---|
System.Drawing.Drawing2D.GraphicsPath | path created from given points |
Overrides
OnOriginChanged(ViewOriginEventArgs)
When called origin Changed.
Declaration
protected override void OnOriginChanged(ViewOriginEventArgs evtArgs)
Parameters
Type | Name | Description |
---|---|---|
ViewOriginEventArgs | evtArgs | The ViewOriginEventArgs instance containing the event data. |
Overrides
ProcessMouseDown(MouseEventArgs)
when mouse down start drawing.
Declaration
public override Tool ProcessMouseDown(MouseEventArgs evtArgs)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | evtArgs | The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
Type | Description |
---|---|
Tool | The pencil tool |
Overrides
ProcessMouseMove(MouseEventArgs)
when mouse move draw points.
Declaration
public override Tool ProcessMouseMove(MouseEventArgs evtArgs)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | evtArgs | The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
Type | Description |
---|---|
Tool | The pencil tool. |
Overrides
ProcessMouseUp(MouseEventArgs)
When mouse up stop draw.
Declaration
public override Tool ProcessMouseUp(MouseEventArgs evtArgs)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | evtArgs | The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
Type | Description |
---|---|
Tool | The pencil tool |
Overrides
UpdateHelperNodeValue()
Updates the painted points into diagram
Declaration
protected void UpdateHelperNodeValue()