Share via


DTE2.Find Property

Definition

Gets the Find object that represents global text find operations.

public:
 property EnvDTE::Find ^ Find { EnvDTE::Find ^ get(); };
public:
 property EnvDTE::Find ^ Find { EnvDTE::Find ^ get(); };
[System.Runtime.InteropServices.DispId(229)]
public EnvDTE.Find Find { [System.Runtime.InteropServices.DispId(229)] get; }
[<System.Runtime.InteropServices.DispId(229)>]
[<get: System.Runtime.InteropServices.DispId(229)>]
member this.Find : EnvDTE.Find
Public ReadOnly Property Find As Find

Property Value

A Find object.

Implements

Attributes

Examples

Sub FindExample()  
  ' Creates a text file, searches for a string, and then displays it.  
  DTE2.executecommand("File.NewFile", "c:\temp\test.txt")  
  DTE2.Find.FindWhat = "mytest"  
  MsgBox(DTE2.Find.FindWhat)  
End Sub  

Applies to