Método VsTextBufferClass.CopyLineText
Coloca o período especificado de texto em um buffer alocado pelo chamador (uma matriz).
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (em Microsoft.VisualStudio.TextManager.Interop.dll)
Sintaxe
'Declaração
Public Overridable Function CopyLineText ( _
iStartLine As Integer, _
iStartIndex As Integer, _
iEndLine As Integer, _
iEndIndex As Integer, _
pszBuf As IntPtr, _
<OutAttribute> ByRef pcchBuf As Integer _
) As Integer
public virtual int CopyLineText(
int iStartLine,
int iStartIndex,
int iEndLine,
int iEndIndex,
IntPtr pszBuf,
out int pcchBuf
)
public:
virtual int CopyLineText(
[InAttribute] int iStartLine,
[InAttribute] int iStartIndex,
[InAttribute] int iEndLine,
[InAttribute] int iEndIndex,
[InAttribute] IntPtr pszBuf,
[InAttribute] [OutAttribute] int% pcchBuf
)
abstract CopyLineText :
iStartLine:int *
iStartIndex:int *
iEndLine:int *
iEndIndex:int *
pszBuf:IntPtr *
pcchBuf:int byref -> int
override CopyLineText :
iStartLine:int *
iStartIndex:int *
iEndLine:int *
iEndIndex:int *
pszBuf:IntPtr *
pcchBuf:int byref -> int
public function CopyLineText(
iStartLine : int,
iStartIndex : int,
iEndLine : int,
iEndIndex : int,
pszBuf : IntPtr,
pcchBuf : int
) : int
Parâmetros
iStartLine
Tipo: Int32[in] Linha inicial.
iStartIndex
Tipo: Int32[in] Índice de caractere inicial dentro da linha. Deve ser menor ou igual ao comprimento da linha.
iEndLine
Tipo: Int32[in] Final de linha.
iEndIndex
Tipo: Int32[in] Índice do caractere de final dentro da linha. Deve ser menor ou igual ao comprimento da linha.
pszBuf
Tipo: IntPtr[in] Ponteiro para um buffer alocado pelo chamador.
pcchBuf
Tipo: Int32%[in, out] Ponteiro para uma contagem de caracteres Unicode — não em bytes.
Valor de retorno
Tipo: Int32
Implementações
IVsTextLines.CopyLineText(Int32, Int32, Int32, Int32, IntPtr, Int32%)
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiável.