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)

property Nullable<SnapshotSpan> CurrentResult {
	Nullable<SnapshotSpan> get();
}

Property Value

Type: System::Nullable<SnapshotSpan>

Returns the result of the last find operation. If no matches were found or if no search was performed, returns null.

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.

Return to top
Show: