VsTextBufferClass.IVsTextLines_GetPositionOfLine Method
Returns the position number of a line.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
‘선언
Public Overridable Function IVsTextLines_GetPositionOfLine ( _
iLine As Integer, _
<OutAttribute> ByRef piPosition As Integer _
) As Integer
public virtual int IVsTextLines_GetPositionOfLine(
int iLine,
out int piPosition
)
public:
virtual int IVsTextLines_GetPositionOfLine(
[InAttribute] int iLine,
[OutAttribute] int% piPosition
)
abstract IVsTextLines_GetPositionOfLine :
iLine:int *
piPosition:int byref -> int
override IVsTextLines_GetPositionOfLine :
iLine:int *
piPosition:int byref -> int
public function IVsTextLines_GetPositionOfLine(
iLine : int,
piPosition : int
) : int
Parameters
- iLine
Type: System.Int32
[in] Number of the line whose position is requested.
- piPosition
Type: System.Int32%
[out] Pointer to the equivalent position number.
Return Value
Type: System.Int32
If the method succeeds, returns S_OK; otherwise, returns an error code.
Implements
IVsTextLines.GetPositionOfLine(Int32, Int32%)
.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.