In This Article

CollapseSelectionAction Class

Represents an IEditAction that collapses to the primary selection range (if more than one range is selected), or collapses the primary selection range to the caret.

public class CollapseSelectionAction : EditActionBase, IEditAction, IKeyedObject
Inheritance:
object RoutedCommand RoutedUICommand EditActionBase object
Implements:
IEditAction IKeyedObject

Constructors

CollapseSelectionAction()

Initializes an instance of the CollapseSelectionAction class.

public CollapseSelectionAction()

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