VsTextBufferClass.CopyLineText(Int32, Int32, Int32, Int32, IntPtr, Int32) Método

Definição

Coloca o intervalo especificado de texto em um buffer alocado pelo chamador (uma matriz).

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 -> int
override this.CopyLineText : int * int * int * int * nativeint * int -> 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

Parâmetros

iStartLine
Int32

no Linha inicial.

iStartIndex
Int32

no Índice de caractere inicial dentro da linha. Deve ser menor ou igual ao comprimento da linha.

iEndLine
Int32

no Linha final.

iEndIndex
Int32

no Índice de caractere final dentro da linha. Deve ser menor ou igual ao comprimento da linha.

pszBuf
IntPtr

no Ponteiro para um buffer alocado pelo chamador.

pcchBuf
Int32

[entrada, saída] Ponteiro para uma contagem de caracteres Unicode — não bytes.

Retornos

Int32

Se o método tiver sucesso, retorna S_OK ; caso contrário, retorna um código de erro.

Implementações

Aplica-se a