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