IVsTextViewEx.GetClusterRange Method
Returns cluster range information.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
‘선언
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
‘사용 방법
Dim instance As IVsTextViewEx
Dim iLine As Integer
Dim iDisplayCol As Integer
Dim picCharacter As Integer
Dim piStartCol As Integer
Dim piEndCol As Integer
Dim returnValue As Integer
returnValue = instance.GetClusterRange(iLine, _
iDisplayCol, picCharacter, piStartCol, _
piEndCol)
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
Parameters
- iLine
Type: System.Int32
[in]
- iDisplayCol
Type: System.Int32
[in]
- picCharacter
Type: System.Int32%
[out]
- piStartCol
Type: System.Int32%
[out]
- piEndCol
Type: System.Int32%
[out]
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 textmgr2.idl:
HRESULT IVsTextViewEx::GetClusterRange(
[in]long iLine,
[in]INT iDisplayCol,
[out]INT *picCharacter,
[out]INT *piStartCol,
[out]INT *piEndCol
);
Returns cluster range info given the line number and index of current character
.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.