Share via


IVsFindTarget.GetSearchImage, méthode

Retourne une image de texte pour que l'environnement le recherche.

Espace de noms :  Microsoft.VisualStudio.TextManager.Interop
Assembly :  Microsoft.VisualStudio.TextManager.Interop (dans Microsoft.VisualStudio.TextManager.Interop.dll)

Syntaxe

'Déclaration
Function GetSearchImage ( _
    grfOptions As UInteger, _
    <OutAttribute> ppSpans As IVsTextSpanSet(), _
    <OutAttribute> ByRef ppTextImage As IVsTextImage _
) As Integer
int GetSearchImage(
    uint grfOptions,
    IVsTextSpanSet[] ppSpans,
    out IVsTextImage ppTextImage
)
int GetSearchImage(
    [InAttribute] unsigned int grfOptions, 
    [OutAttribute] array<IVsTextSpanSet^>^ ppSpans, 
    [OutAttribute] IVsTextImage^% ppTextImage
)
abstract GetSearchImage : 
        grfOptions:uint32 * 
        ppSpans:IVsTextSpanSet[] byref * 
        ppTextImage:IVsTextImage byref -> int
function GetSearchImage(
    grfOptions : uint, 
    ppSpans : IVsTextSpanSet[], 
    ppTextImage : IVsTextImage
) : int

Paramètres

  • grfOptions
    Type : UInt32

    [in] spécifie des options de Rechercher et de Remplacer. Pour une liste de valeurs, consultez l'__VSFINDOPTIONS.

Valeur de retour

Type : Int32
Si la méthode réussit, elle retourne S_OK.En cas d'échec, un code d'erreur est retourné.

Notes

Signature de COM

De textmgr.idl :

HRESULT IVsFindTarget::GetSearchImage(
   [in] VSFINDOPTIONS grfOptions,
   [out, custom(DE89D360-C06A-11d2-936C-D714766E8B50,"optional")] IVsTextSpanSet ** ppSpans
);

Pour prendre en charge rechercher, vous devez implémenter l'GetSearchImage ou l'Find et l'Replace.

Sécurité .NET Framework

Voir aussi

Référence

IVsFindTarget Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms