Share via


IDifferenceViewer.ScrollToPreviousChange Method (SnapshotPoint, Boolean)

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

Namespace:  Microsoft.VisualStudio.Text.Differencing
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
Function ScrollToPreviousChange ( _
    point As SnapshotPoint, _
    wrap As Boolean _
) As Boolean
bool ScrollToPreviousChange(
    SnapshotPoint point,
    bool wrap
)
bool ScrollToPreviousChange(
    SnapshotPoint point, 
    bool wrap
)
abstract ScrollToPreviousChange : 
        point:SnapshotPoint * 
        wrap:bool -> bool
function ScrollToPreviousChange(
    point : SnapshotPoint, 
    wrap : boolean
) : boolean

Parameters

  • wrap
    Type: Boolean

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

Return Value

Type: Boolean
True on success (if there was a next difference), false otherwise.

.NET Framework Security

See Also

Reference

IDifferenceViewer Interface

ScrollToPreviousChange Overload

Microsoft.VisualStudio.Text.Differencing Namespace