PasteFromClipboardAction Class
Represents an IEditAction that pastes text from the clipboard into the editor view.
public class PasteFromClipboardAction : EditActionBase, ICommand, IEditAction, IKeyedObject, ICommand
- Inheritance:
- Object RoutedCommand RoutedUICommand EditActionBase Object
- Implements:
- IEditAction IKeyedObject
Constructors
PasteFromClipboardAction()
Initializes a new instance of the PasteFromClipboardAction
class.
public PasteFromClipboardAction()
Remarks
The default constructor initializes all fields to their default values.
PasteFromClipboardAction(IDataStore)
Initializes a new instance of the PasteFromClipboardAction
class.
public PasteFromClipboardAction(IDataStore clipboardData)
Parameter | Type | Description |
---|---|---|
clipboardData | IDataStore | The IDataStore containing clipboard data to use for the paste. |
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
- Boolean:
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. |
ReadFromXml(XmlReader)
Deserializes the data for the IEditAction from XML.
public override void ReadFromXml(XmlReader reader)
Parameter | Type | Description |
---|---|---|
reader | XmlReader | The XmlReader to use. |
Remarks
This method is used for macro serialization.
WriteToXml(XmlWriter)
Serializes the data for the IEditAction to XML.
public override void WriteToXml(XmlWriter writer)
Parameter | Type | Description |
---|---|---|
writer | XmlWriter | The XmlWriter to use. |
Remarks
This method is used for macro serialization.
Inherited Members
- EditActionBase.GetKeyText(ModifierKeys, Key)
- 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()