menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DeleteTextCmd - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DeleteTextCmd

    Command used to delete text.

    Inheritance
    System.Object
    SetTextCmd
    CutTextCmd
    DeleteTextCmd
    Implements
    ICommand
    Inherited Members
    SetTextCmd.CanUndo
    SetTextCmd.ComposeRtfString(String[])
    SetTextCmd.ComposeString(String[])
    SetTextCmd.Description
    SetTextCmd.InsertionLocation
    SetTextCmd.m_nInsertionStart
    SetTextCmd.m_nodeEditing
    SetTextCmd.m_strDeleted
    SetTextCmd.m_strDescription
    SetTextCmd.m_strToInsert
    SetTextCmd.m_txtEditor
    SetTextCmd.NodeEditing
    SetTextCmd.RTFTextDeleted
    SetTextCmd.RTFTextInserting
    SetTextCmd.TextDeleted
    SetTextCmd.TextInserting
    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 DeleteTextCmd : CutTextCmd, ICommand

    Constructors

    DeleteTextCmd(TextEditor, Node, Int32, String, String)

    Initializes a new instance of the DeleteTextCmd class.

    Declaration
    public DeleteTextCmd(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.

    Declaration
    public override bool CanMerge(ICommand cmd)
    Parameters
    Type Name Description
    ICommand cmd

    The command.

    Returns
    Type Description
    System.Boolean

    true if this instance can merge the specified command; otherwise, false.

    Overrides
    CutTextCmd.CanMerge(ICommand)

    Do(Object)

    Does the specified target.

    Declaration
    public override bool Do(object target)
    Parameters
    Type Name Description
    System.Object target

    The target.

    Returns
    Type Description
    System.Boolean

    true, if do the specified target.

    Overrides
    CutTextCmd.Do(Object)

    Merge(ICommand)

    Merges the specified CMD merging.

    Declaration
    public override void Merge(ICommand cmdMerging)
    Parameters
    Type Name Description
    ICommand cmdMerging

    The CMD merging.

    Overrides
    CutTextCmd.Merge(ICommand)

    Undo()

    Reverses the command.

    Declaration
    public override bool Undo()
    Returns
    Type Description
    System.Boolean

    True if successful; otherwise False.

    Overrides
    SetTextCmd.Undo()

    Implements

    ICommand
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved