IVsTextTrackingPoint.GetCurrentLineIndex Method
Gets the tracking point current line and index.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'宣告
Function GetCurrentLineIndex ( _
<OutAttribute> ByRef piLine As Integer, _
<OutAttribute> ByRef piIndex As Integer _
) As Integer
int GetCurrentLineIndex(
out int piLine,
out int piIndex
)
int GetCurrentLineIndex(
[OutAttribute] int% piLine,
[OutAttribute] int% piIndex
)
abstract GetCurrentLineIndex :
piLine:int byref *
piIndex:int byref -> int
function GetCurrentLineIndex(
piLine : int,
piIndex : int
) : int
Parameters
- piLine
Type: System.Int32%
[out] The line number of the tracking point.
- piIndex
Type: System.Int32%
[out] The line index of the tracking point.
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 IVsTextTrackingPoint::GetCurrentLineIndex(
[out] long *piLine,
[out] long *piIndex
);
.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.