Partilhar via


Método IVsTextImage.GetText

Retorne o texto de um intervalo de texto.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (em Microsoft.VisualStudio.TextManager.Interop.dll)

Sintaxe

'Declaração
Function GetText ( _
    pts As TextSpan(), _
    cch As Integer, _
    <OutAttribute> psz As UShort() _
) As Integer
int GetText(
    TextSpan[] pts,
    int cch,
    ushort[] psz
)
int GetText(
    [InAttribute] array<TextSpan>^ pts, 
    [InAttribute] int cch, 
    [OutAttribute] array<unsigned short>^ psz
)
abstract GetText : 
        pts:TextSpan[] * 
        cch:int * 
        psz:uint16[] byref -> int
function GetText(
    pts : TextSpan[], 
    cch : int, 
    psz : ushort[]
) : int

Parâmetros

  • cch
    Tipo: Int32

    [in] Número de caracteres a serem retornados.

  • psz
    Tipo: array<UInt16[]

    [out] Ponteiro para uma seqüência terminada nula, que contém o texto.

Valor de retorno

Tipo: Int32
Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De textmgr.idl:

HRESULT IVsTextImage::GetText(
   [in] const TextSpan * pts,
   [in] LONG cch,
   [out, size_is(cch)] LPOLESTR psz
);

Segurança do .NET Framework

Consulte também

Referência

IVsTextImage Interface

Namespace Microsoft.VisualStudio.TextManager.Interop