IVsTextViewEx.GetClusterRange 方法

返回群集大小信息。

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

语法

声明
Function GetClusterRange ( _
    iLine As Integer, _
    iDisplayCol As Integer, _
    <OutAttribute> ByRef picCharacter As Integer, _
    <OutAttribute> ByRef piStartCol As Integer, _
    <OutAttribute> ByRef piEndCol As Integer _
) As Integer
int GetClusterRange(
    int iLine,
    int iDisplayCol,
    out int picCharacter,
    out int piStartCol,
    out int piEndCol
)
int GetClusterRange(
    [InAttribute] int iLine, 
    [InAttribute] int iDisplayCol, 
    [OutAttribute] int% picCharacter, 
    [OutAttribute] int% piStartCol, 
    [OutAttribute] int% piEndCol
)
abstract GetClusterRange : 
        iLine:int * 
        iDisplayCol:int * 
        picCharacter:int byref * 
        piStartCol:int byref * 
        piEndCol:int byref -> int
function GetClusterRange(
    iLine : int, 
    iDisplayCol : int, 
    picCharacter : int, 
    piStartCol : int, 
    piEndCol : int
) : int

参数

  • iLine
    类型:Int32

    [in]

  • iDisplayCol
    类型:Int32

    [in]

  • picCharacter
    类型:Int32%

    [out]

  • piStartCol
    类型:Int32%

    [out]

  • piEndCol
    类型:Int32%

    [out]

返回值

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

备注

COM 签名

从 textmgr2.idl:

HRESULT IVsTextViewEx::GetClusterRange(
   [in]long iLine, 
   [in]INT iDisplayCol, 
   [out]INT *picCharacter, 
   [out]INT *piStartCol, 
   [out]INT *piEndCol
);

返回信息给定的群集范围当前字符行号和索引

.NET Framework 安全性

请参阅

参考

IVsTextViewEx 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间