VsTextBufferClass.CopyLineText(Int32, Int32, Int32, Int32, IntPtr, Int32) Method

Definition

Puts the specified span of text into a caller-allocated buffer (an array).

public:
 virtual int CopyLineText(int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, IntPtr pszBuf, [Runtime::InteropServices::Out] int % pcchBuf) = Microsoft::VisualStudio::TextManager::Interop::IVsTextLines::CopyLineText;
public virtual int CopyLineText (int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, IntPtr pszBuf, out int pcchBuf);
abstract member CopyLineText : int * int * int * int * nativeint *  -> int
override this.CopyLineText : int * int * int * int * nativeint *  -> int
Public Overridable Function CopyLineText (iStartLine As Integer, iStartIndex As Integer, iEndLine As Integer, iEndIndex As Integer, pszBuf As IntPtr, ByRef pcchBuf As Integer) As Integer

Parameters

iStartLine
Int32

[in] Starting line.

iStartIndex
Int32

[in] Starting character index within the line. Must be less than or equal to the length of the line.

iEndLine
Int32

[in] Ending line.

iEndIndex
Int32

[in] Ending character index within the line. Must be less than or equal to the length of the line.

pszBuf
IntPtr

[in] Pointer to a caller-allocated buffer.

pcchBuf
Int32

[in, out] Pointer to a count of Unicode characters — not bytes.

Returns

If the method succeeds, returns S_OK; otherwise, returns an error code.

Implements

Applies to