In This Article

ScrollDownAction Class

Represents an IEditAction that scrolls down a line.

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

Constructors

ScrollDownAction()

Initializes an instance of the ScrollDownAction class.

public ScrollDownAction()

ScrollDownAction(bool)

Initializes an instance of the ScrollDownAction class.

public ScrollDownAction(bool canKeepCaretVisible)
Parameter Type Description
canKeepCaretVisible bool

When true, the caret will be moved, as necessary, to remain visible after scrolling (for single caret only).

Properties

CanKeepCaretVisible

Gets a value which indicates if the caret will be moved, as necessary, to remain visible after scrolling.

public bool CanKeepCaretVisible { get; }

Property Value

bool:

true to make sure the caret is visible after scrolling; otherwise false to leave the caret position unchanged. The default value is true.

Remarks

This setting only applies when there is a single and will have no effect when there multiple carets are present.

Methods

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