Compartilhar via


IVsFindTarget.GetMatchRect(RECT[]) Method

Definition

Return the screen coordinates of the matched string.

public:
 int GetMatchRect(cli::array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ prc);
public:
 int GetMatchRect(Platform::Array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ prc);
int GetMatchRect(std::Array <Microsoft::VisualStudio::OLE::Interop::RECT> const & prc);
public int GetMatchRect (Microsoft.VisualStudio.OLE.Interop.RECT[] prc);
abstract member GetMatchRect : Microsoft.VisualStudio.OLE.Interop.RECT[] -> int
Public Function GetMatchRect (prc As RECT()) As Integer

Parameters

prc
RECT[]

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

Returns

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.

Applies to