IVsSyntheticRegion.GetBaseBufferAnchor 方法

获取该区域的基本缓冲区定位点。

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

语法

声明
Function GetBaseBufferAnchor ( _
    <OutAttribute> ByRef piAnchorLine As Integer, _
    <OutAttribute> ByRef piAnchorIndex As Integer _
) As Integer
int GetBaseBufferAnchor(
    out int piAnchorLine,
    out int piAnchorIndex
)
int GetBaseBufferAnchor(
    [OutAttribute] int% piAnchorLine, 
    [OutAttribute] int% piAnchorIndex
)
abstract GetBaseBufferAnchor : 
        piAnchorLine:int byref * 
        piAnchorIndex:int byref -> int
function GetBaseBufferAnchor(
    piAnchorLine : int, 
    piAnchorIndex : int
) : int

参数

  • piAnchorLine
    类型:Int32%

    [out] 基本缓冲区位置的索引。

  • piAnchorIndex
    类型:Int32%

    [out] 区域的当前基本缓冲区位置。

返回值

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

备注

COM 签名

从 textmgr.idl:

HRESULT IVsSyntheticRegion::GetBaseBufferAnchor(
   [out] long *piAnchorLine,
   [out] long *piAnchorIndex
);

.NET Framework 安全性

请参阅

参考

IVsSyntheticRegion 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间