In This Article

IEditAction Interface

Defines the base requirements for an edit action that can be performed in an IEditorView.

public interface IEditAction : IKeyedObject

Properties

CanRecordInMacro

Gets whether the action can be recorded in a macro.

bool CanRecordInMacro { get; }

Property Value

bool:

true if the action can be recorded in a macro; otherwise, false.

Methods

CanExecute(IEditorView)

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

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.

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.

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.

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