FindData Constructor (String^, ITextSnapshot^, FindOptions, ITextStructureNavigator^)
Visual Studio 2015
Initializes a new instance of FindData with the specified search pattern, text snapshot, find options, and text structure navigator.
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. |
Show: