In This Article

CutToClipboardAction Class

Represents an IEditAction that cuts the currently selected text to the clipboard.

public class CutToClipboardAction : EditActionBase, IEditAction, IKeyedObject
Inheritance:
object RoutedCommand RoutedUICommand EditActionBase object
Derived:
CutAndAppendToClipboardAction
Implements:
IEditAction IKeyedObject

Constructors

CutToClipboardAction()

Initializes a new instance of the CutToClipboardAction class.

public CutToClipboardAction()

Remarks

The default constructor initializes all fields to their default values.

CutToClipboardAction(string)

Initializes a new instance of the CutToClipboardAction class.

protected CutToClipboardAction(string text)
Parameter Type Description
text string

The command text.

Properties

Append

Gets whether to append the copied text to the existing clipboard contents instead of overwriting them.

protected virtual bool Append { get; }

Property Value

bool:

true if the copied text should be appended; otherwise, false.

Methods

CanExecute(IEditorView)

Returns whether the edit action can execute in the specified IEditorView.

public override bool CanExecute(IEditorView view)
Parameter Type Description
view IEditorView

The IEditorView to examine.

Returns

bool:

true if the edit action can execute in the specified IEditorView; otherwise, false.

Execute(IEditorView)

Executes the edit action in the specified IEditorView.

public override void Execute(IEditorView view)
Parameter Type Description
view IEditorView

The IEditorView in which to execute the edit action.

Inherited Members