This topic has not yet been rated - Rate this topic

IVsFindTarget Interface

Implements Find and Replace capabilities within your editor.

Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in microsoft.visualstudio.textmanager.interop.dll)

[InterfaceTypeAttribute(1)] 
[GuidAttribute("DE89D360-C06A-11D2-936C-D714766E8B50")] 
public interface IVsFindTarget
/** @attribute InterfaceTypeAttribute(1) */ 
/** @attribute GuidAttribute("DE89D360-C06A-11D2-936C-D714766E8B50") */ 
public interface IVsFindTarget
InterfaceTypeAttribute(1) 
GuidAttribute("DE89D360-C06A-11D2-936C-D714766E8B50") 
public interface IVsFindTarget

You must do the following for the environment to know what the current target is, and to find the targets for all open documents:

  • When a user's document is activated, push the document's IVsFindTarget into the SEID_FindTarget slot of the selection context.

  • Implement IVsFindTarget on one of the objects returned by the frame properties VSFPROPID_DocView or VSFPROPID_DocData.

Notes to Implementers Implement this interface to support Find and Replace in your window or document.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ