Class CutTextCmd
Cut text commands.
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.Windows.dll
Syntax
public class CutTextCmd : SetTextCmd, ICommand
Constructors
CutTextCmd(TextEditor, Node, Int32, String, String)
Initializes a new instance of the CutTextCmd class.
Declaration
public CutTextCmd(TextEditor textEditor, Node nodeEditing, int nInsertionLocation, string strDeletedText, string strTextToInsert)
Parameters
Type | Name | Description |
---|---|---|
TextEditor | textEditor | The text editor. |
Node | nodeEditing | The node editing. |
System.Int32 | nInsertionLocation | The n insertion location. |
System.String | strDeletedText | The deleted text. |
System.String | strTextToInsert | The text to insert. |
Methods
CanMerge(ICommand)
Determines whether this instance can merge the specified command to previous recorded command.
Declaration
public override bool CanMerge(ICommand cmd)
Parameters
Type | Name | Description |
---|---|---|
ICommand | cmd | The command to merge. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
Do(Object)
Performs the action.
Declaration
public override bool Do(object target)
Parameters
Type | Name | Description |
---|---|---|
System.Object | target | Object that is acted upon. |
Returns
Type | Description |
---|---|
System.Boolean | True if successful; otherwise False. |
Overrides
Merge(ICommand)
Merges the specified merging command.
Declaration
public override void Merge(ICommand cmdMerging)
Parameters
Type | Name | Description |
---|---|---|
ICommand | cmdMerging | The merging command. |