IVsFindTarget::GetMatchRect Method (array<RECT>^)

 

Return the screen coordinates of the matched string.

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

int GetMatchRect(
	array<RECT>^ prc
)

Parameters

prc
Type: array<Microsoft.VisualStudio.OLE.Interop::RECT>^

[out] Screen coordinates of the match. Values are returned in a PRECT structure.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

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.

Return to top
Show: