menu

WinForms

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

    Show / Hide Table of Contents

    Class CutTextCmd

    Cut text commands.

    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
    SetTextCmd.Undo()
    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

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

    Overrides
    SetTextCmd.CanMerge(ICommand)

    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
    SetTextCmd.Do(Object)

    Merge(ICommand)

    Merges the specified merging command.

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

    The merging command.

    Overrides
    SetTextCmd.Merge(ICommand)

    Implements

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