Class SetGraphicsPathCmd
Command used with PathNode's GraphicsPath updating.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public sealed class SetGraphicsPathCmd : ICommand
Constructors
SetGraphicsPathCmd(PathNode, GraphicsPath, GraphicsPath, Boolean)
Initializes a new instance of the SetGraphicsPathCmd class.
Declaration
public SetGraphicsPathCmd(PathNode nodePath, GraphicsPath pathCurrent, GraphicsPath pathToCombineWith, bool bConnect)
Parameters
Type | Name | Description |
---|---|---|
PathNode | nodePath | The node path. |
System.Drawing.Drawing2D.GraphicsPath | pathCurrent | The path current. |
System.Drawing.Drawing2D.GraphicsPath | pathToCombineWith | The path to combine with. |
System.Boolean | bConnect | if set to |
Properties
CanUndo
Gets a value indicating whether or not the command supports undo.
Declaration
public bool CanUndo { get; }
Property Value
Type |
---|
System.Boolean |
Description
Gets short, user-friendly description of the command.
Declaration
public string Description { get; }
Property Value
Type |
---|
System.String |
Methods
CanMerge(ICommand)
Determines whether this instance can merge the specified command to previous recorded command.
Declaration
public bool CanMerge(ICommand cmd)
Parameters
Type | Name | Description |
---|---|---|
ICommand | cmd | The command to merge. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Do(Object)
Performs the action.
Declaration
public bool Do(object target)
Parameters
Type | Name | Description |
---|---|---|
System.Object | target | Object that is acted upon (noun). |
Returns
Type | Description |
---|---|
System.Boolean | True if successful; otherwise False. |
Merge(ICommand)
Merges the specified command with last recorded user operation.
Declaration
public void Merge(ICommand cmd)
Parameters
Type | Name | Description |
---|---|---|
ICommand | cmd | The command to merge. |
Undo()
Reverses the command.
Declaration
public bool Undo()
Returns
Type | Description |
---|---|
System.Boolean | True if successful; otherwise False. |