IDifferenceViewer.ScrollToNextChange Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ScrollToNextChange(Boolean) |
Given the cursor position in the last focused text view, scroll and move the caret to the next difference. |
ScrollToNextChange(SnapshotPoint, Boolean) |
Scroll and move the caret to the next difference after the specified location. |
ScrollToNextChange(Boolean)
Given the cursor position in the last focused text view, scroll and move the caret to the next difference.
bool ScrollToNextChange(bool wrap = false);
public bool ScrollToNextChange (bool wrap = false);
abstract member ScrollToNextChange : bool -> bool
Public Function ScrollToNextChange (Optional wrap As Boolean = false) As Boolean
Parameters
- wrap
- Boolean
Wrap to the first difference if there is no next difference.
Returns
true
on success (if there was a next difference), false
otherwise.
Applies to
ScrollToNextChange(SnapshotPoint, Boolean)
Scroll and move the caret to the next difference after the specified location.
public bool ScrollToNextChange (Microsoft.VisualStudio.Text.SnapshotPoint point, bool wrap = false);
abstract member ScrollToNextChange : Microsoft.VisualStudio.Text.SnapshotPoint * bool -> bool
Public Function ScrollToNextChange (point As SnapshotPoint, Optional wrap As Boolean = false) As Boolean
Parameters
- point
- SnapshotPoint
Location to start scrolling from.
- wrap
- Boolean
Wrap to the first difference if there is no next difference.
Returns
true
on success (if there was a next difference), false
otherwise.