Share via


ITextSearchNavigator.CurrentResult Property

Gets the SnapshotSpan corresponding to the result of the last find operation.

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Declaration
ReadOnly Property CurrentResult As Nullable(Of SnapshotSpan)
Nullable<SnapshotSpan> CurrentResult { get; }
property Nullable<SnapshotSpan> CurrentResult {
    Nullable<SnapshotSpan> get ();
}
abstract CurrentResult : Nullable<SnapshotSpan> with get
function get CurrentResult () : Nullable<SnapshotSpan>

Property Value

Type: Nullable<SnapshotSpan>
Returns the result of the last find operation. If no matches were found or if no search was performed, returns nulla null reference (Nothing in Visual Basic).

Remarks

If returned CurrentResult is not null, then the next find operation will search from either endpoint of the current result, depending on the search direction.

.NET Framework Security

See Also

Reference

ITextSearchNavigator Interface

Microsoft.VisualStudio.Text.Operations Namespace