共用方式為


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
'用途
Dim instance As IVsFindTarget
Dim prc As RECT()
Dim returnValue As Integer

returnValue = instance.GetMatchRect(prc)
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

IVsFindTarget Members

Microsoft.VisualStudio.TextManager.Interop Namespace