Partilhar via


IDifferenceViewer.ScrollToPreviousChange Method

Definition

Overloads

ScrollToPreviousChange(Boolean)

Given the cursor position in the last focused text view, scroll and move the caret to the previous difference.

ScrollToPreviousChange(SnapshotPoint, Boolean)

Scroll and move the caret to the previous difference before the specified location.

ScrollToPreviousChange(Boolean)

Given the cursor position in the last focused text view, scroll and move the caret to the previous difference.

bool ScrollToPreviousChange(bool wrap = false);
public bool ScrollToPreviousChange (bool wrap = false);
abstract member ScrollToPreviousChange : bool -> bool
Public Function ScrollToPreviousChange (Optional wrap As Boolean = false) As Boolean

Parameters

wrap
Boolean

Wrap to the last difference if there is no previous difference.

Returns

true on success (if there was a previous difference), false otherwise.

Applies to

ScrollToPreviousChange(SnapshotPoint, Boolean)

Scroll and move the caret to the previous difference before the specified location.

public bool ScrollToPreviousChange (Microsoft.VisualStudio.Text.SnapshotPoint point, bool wrap = false);
abstract member ScrollToPreviousChange : Microsoft.VisualStudio.Text.SnapshotPoint * bool -> bool
Public Function ScrollToPreviousChange (point As SnapshotPoint, Optional wrap As Boolean = false) As Boolean

Parameters

point
SnapshotPoint

Location to start scrolling from.

wrap
Boolean

Wrap to the last difference if there is no previous difference.

Returns

true on success (if there was a next difference), false otherwise.

Applies to