Partager via


FindData Structure

Represents the set of data used in a search by the ITextSearchService.

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

Syntax

'Declaration
Public Structure FindData
public struct FindData
public value class FindData
[<Sealed>]
type FindData =  struct end
JScript supports the use of structures, but not the declaration of new ones.

The FindData type exposes the following members.

Constructors

  Name Description
Public method FindData(String, ITextSnapshot) Initializes a new instance of FindData with the specified search pattern and text snapshot.
Public method FindData(String, ITextSnapshot, FindOptions, ITextStructureNavigator) Initializes a new instance of FindData with the specified search pattern, text snapshot, find options, and text structure navigator.

Top

Properties

  Name Description
Public property FindOptions Gets or sets the options that are used for the search.
Public property SearchString Gets or sets the string to use in the search.
Public property TextSnapshotToSearch Gets or sets the ITextSnapshot on which to perform the search.
Public property TextStructureNavigator Gets or sets the ITextStructureNavigator to use in determining word boundaries.

Top

Methods

  Name Description
Public method Equals Determines whether two FindData objects are the same. (Overrides ValueType.Equals(Object).)
Public method GetHashCode Gets the hash code for the object. (Overrides ValueType.GetHashCode.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Converts the FindData object to a string. (Overrides ValueType.ToString.)

Top

Operators

  Name Description
Public operatorStatic member Equality Determines whether two FindData objects are the same.
Public operatorStatic member Inequality Determines whether two FindData objects are different.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Text.Operations Namespace