Partilhar via


Método VsTextImageClass.GetTextBSTR

Retorna o texto de um intervalo de texto como um BSTR

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

Sintaxe

'Declaração
Public Overridable Function GetTextBSTR ( _
    pts As TextSpan(), _
    <OutAttribute> ByRef pbstrText As String _
) As Integer
public virtual int GetTextBSTR(
    TextSpan[] pts,
    out string pbstrText
)
public:
virtual int GetTextBSTR(
    [InAttribute] array<TextSpan>^ pts, 
    [OutAttribute] String^% pbstrText
)
abstract GetTextBSTR : 
        pts:TextSpan[] * 
        pbstrText:string byref -> int  
override GetTextBSTR : 
        pts:TextSpan[] * 
        pbstrText:string byref -> int
public function GetTextBSTR(
    pts : TextSpan[], 
    pbstrText : String
) : int

Parâmetros

  • pbstrText
    Tipo: String%

    [out] Ponteiro para um BSTR contendo o texto.

Valor de retorno

Tipo: Int32

Implementações

IVsTextImage.GetTextBSTR(array<TextSpan[], String%)

Segurança do .NET Framework

Consulte também

Referência

VsTextImageClass Classe

Namespace Microsoft.VisualStudio.TextManager.Interop