In This Article

PasteFromClipboardAction Class

Represents an IEditAction that pastes text from the clipboard into the editor view.

public class PasteFromClipboardAction : EditActionBase, IEditAction, IKeyedObject
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

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.

ReadFromXml(XmlReader)

Deserializes the data for the IEditAction from XML.

public override void ReadFromXml(XmlReader reader)
Parameter Type Description
reader XmlReader

The System.Xml.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 System.Xml.XmlWriter to use.

Remarks

This method is used for macro serialization.

Inherited Members