In This Article

CopyToClipboardAction Class

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

public class CopyToClipboardAction : EditActionBase, IEditAction, IKeyedObject
Inheritance:
object RoutedCommand RoutedUICommand EditActionBase object
Derived:
CopyAndAppendToClipboardAction
Implements:
IEditAction IKeyedObject

Constructors

CopyToClipboardAction()

Initializes an instance of the class.

public CopyToClipboardAction()

CopyToClipboardAction(string?)

Initializes an instance of the class.

protected CopyToClipboardAction(string? text)
Parameter Type Description
text string

The command text.

Properties

Append

Indicates 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

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

Extension Methods