Class VertexCmd
Vertex commands
Inheritance
System.Object
VertexCmd
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class VertexCmd : ICommand
Constructors
VertexCmd(PathNode, VertexChangeType, Int32, PointF)
Initializes a new instance of the VertexCmd class.
Declaration
public VertexCmd(PathNode nodeVertexContainer, VertexChangeType changeType, int nVertexIdx, PointF ptVertexLocation)
Parameters
| Type | Name | Description |
|---|---|---|
| PathNode | nodeVertexContainer | The node vertex container. |
| VertexChangeType | changeType | Type of the change. |
| System.Int32 | nVertexIdx | The vertex index. |
| System.Drawing.PointF | ptVertexLocation | The vertex location. |
Fields
commands
List of commands to execute.
Declaration
protected ArrayList commands
Field Value
| Type |
|---|
| System.Collections.ArrayList |
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.
Declaration
public bool CanMerge(ICommand command)
Parameters
| Type | Name | Description |
|---|---|---|
| ICommand | command | The command. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
Do(Object)
Does the specified command target.
Declaration
public bool Do(object cmdTarget)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | cmdTarget | The command target. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true, if do the specified command target. |
Merge(ICommand)
Merges the specified command.
Declaration
public void Merge(ICommand command)
Parameters
| Type | Name | Description |
|---|---|---|
| ICommand | command | The command. |
Undo()
Reverses the command.
Declaration
public bool Undo()
Returns
| Type | Description |
|---|---|
| System.Boolean | True if successful; otherwise False. |