CopyToClipboardAction Class
Represents an IEditAction that copies the currently selected text to the clipboard.
public class CopyToClipboardAction : EditActionBase, ICommand, IEditAction, IKeyedObject, ICommand
- Inheritance:
- Object RoutedCommand RoutedUICommand EditActionBase Object
- Derived:
- CopyAndAppendToClipboardAction
- Implements:
- IEditAction IKeyedObject
Constructors
CopyToClipboardAction()
Initializes a new instance of the CopyToClipboardAction
class.
public CopyToClipboardAction()
Remarks
The default constructor initializes all fields to their default values.
CopyToClipboardAction(String)
Initializes a new instance of the CopyToClipboardAction
class.
protected CopyToClipboardAction(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
- Boolean:
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
- EditActionBase.CanExecute(IEditorView)
- EditActionBase.GetKeyText(ModifierKeys, Key)
- EditActionBase.ReadFromXml(XmlReader)
- EditActionBase.WriteToXml(XmlWriter)
- EditActionBase.CreateCommandBinding()
- EditActionBase.CreateCommandBinding(ICommand)
- EditActionBase.CanRecordInMacro
- EditActionBase.Key
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()