In This Article

IndentAction Class

Represents an IEditAction that indents the currently selected lines.

public class IndentAction : EditActionBase, IEditAction, IKeyedObject
Inheritance:
object RoutedCommand RoutedUICommand EditActionBase object
Derived:
InsertTabStopOrIndentAction
Implements:
IEditAction IKeyedObject

Constructors

IndentAction()

Initializes an instance of the IndentAction class.

public IndentAction()

IndentAction(string)

Initializes an instance of the IndentAction class.

protected IndentAction(string text)
Parameter Type Description
text string

The command text.

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.

Inherited Members