VsTextBufferClass::CopyLineText Method (Int32, Int32, Int32, Int32, IntPtr, Int32)
Visual Studio 2015
Puts the specified span of text into a caller-allocated buffer (an array).
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
public: virtual int CopyLineText( int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, IntPtr pszBuf, int% pcchBuf )
Parameters
- iStartLine
-
Type:
System::Int32
[in] Starting line.
- iStartIndex
-
Type:
System::Int32
[in] Starting character index within the line. Must be less than or equal to the length of the line.
- iEndLine
-
Type:
System::Int32
[in] Ending line.
- iEndIndex
-
Type:
System::Int32
[in] Ending character index within the line. Must be less than or equal to the length of the line.
- pszBuf
-
Type:
System::IntPtr
[in] Pointer to a caller-allocated buffer.
- pcchBuf
-
Type:
System::Int32
[in, out] Pointer to a count of Unicode characters — not bytes.
Return Value
Type: System::Int32If the method succeeds, returns S_OK; otherwise, returns an error code.
Show: