共用方式為


_DTE.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.

Attributes

Examples

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

Applies to