FindData Constructor (String^, ITextSnapshot^, FindOptions, ITextStructureNavigator^)

 

Initializes a new instance of FindData with the specified search pattern, text snapshot, find options, and text structure navigator.

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

public:
FindData(
	String^ searchPattern,
	ITextSnapshot^ textSnapshot,
	FindOptions findOptions,
	ITextStructureNavigator^ textStructureNavigator
)

Parameters

searchPattern
Type: System::String^

The search pattern.

textSnapshot
Type: Microsoft.VisualStudio.Text::ITextSnapshot^

The ITextSnapshot to search.

findOptions
Type: Microsoft.VisualStudio.Text.Operations::FindOptions

The FindOptions to use during the search.

textStructureNavigator
Type: Microsoft.VisualStudio.Text.Operations::ITextStructureNavigator^

The ITextStructureNavigator to use during the search.

Exception Condition
ArgumentNullException

searchPattern or textSnapshot is null.

ArgumentOutOfRangeException

searchPattern is an empty string.

Return to top
Show: