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
'宣告
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
- 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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.