IVsFindTarget.GetMatchRect 方法

返回一个匹配的字符串的屏幕坐标。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
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

参数

  • prc
    类型:array<RECT[]

    [out] 匹配的屏幕坐标。 值在 PRECT framework 返回。

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 textmgr.idl:

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

在收到通知演示成功的 Find 后调用,环境将调用 GetMatchRect 确定 查找/替换 对话框应该是否已被移动。 返回匹配的字符串的屏幕坐标。 PRECT framework 的。

.NET Framework 安全性

请参阅

参考

IVsFindTarget 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间