Partager via


IVsFindTarget.GetMatchRect Method

Return the screen coordinates of the matched string.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Déclaration
Function GetMatchRect ( _
    <OutAttribute> prc As RECT() _
) As Integer
int GetMatchRect(
    RECT[] prc
)
int GetMatchRect(
    [OutAttribute] array<RECT>^ prc
)
abstract GetMatchRect : 
        prc:RECT[] byref -> int 
function GetMatchRect(
    prc : RECT[]
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsFindTarget::GetMatchRect(
   [out, retval] PRECT prc
);

After being notified of a successful Find call, the environment will call GetMatchRect to determine if the find/replace dialog box should be moved. Return the screen coordinates of the matched string in a PRECT structure.

.NET Framework Security

See Also

Reference

IVsFindTarget Interface

Microsoft.VisualStudio.TextManager.Interop Namespace