VsTextBufferClass.CopyLineText(Int32, Int32, Int32, Int32, IntPtr, Int32) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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
Se o método tiver sucesso, retorna S_OK ; caso contrário, retorna um código de erro.