IEditAction Interface
Defines the base requirements for an edit action that can be performed in an IEditorView.
public interface IEditAction : IKeyedObject, ICommand
Properties
CanRecordInMacro
Gets whether the action can be recorded in a macro.
bool CanRecordInMacro { get; }
Property Value
- Boolean:
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
- Boolean:
true
if the edit action can execute in the specified IEditorView; otherwise,false
.
CreateCommandBinding()
Returns a CommandBinding for this edit action.
CommandBinding CreateCommandBinding()
Returns
- CommandBinding:
A CommandBinding for this edit action.
CreateCommandBinding(ICommand)
Returns a CommandBinding for this edit action.
CommandBinding CreateCommandBinding(ICommand alternateCommand)
Parameter | Type | Description |
---|---|---|
alternateCommand | ICommand | The alternate ICommand to use in the command binding for this edit action. |
Returns
- CommandBinding:
A CommandBinding for this edit action.
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 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 XmlWriter to use. |
Remarks
This method is used for macro serialization.