IVsTextImage.GetTextBSTR(TextSpan[], String) Méthode

Définition

Retourne le texte d'une étendue de texte en tant que BSTR

public:
 int GetTextBSTR(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts, [Runtime::InteropServices::Out] System::String ^ % pbstrText);
int GetTextBSTR(std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pts, [Runtime::InteropServices::Out] std::wstring const & & pbstrText);
public int GetTextBSTR (Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pts, out string pbstrText);
abstract member GetTextBSTR : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * string -> int
Public Function GetTextBSTR (pts As TextSpan(), ByRef pbstrText As String) As Integer

Paramètres

pts
TextSpan[]

[in] Pointeur vers une structure TextSpan.

pbstrText
String

[out] Pointeur vers un BSTR contenant le texte.

Retours

Int32

Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.

Remarques

Signature COM

À partir de textmgr. idl :

HRESULT IVsTextImage::GetTextBSTR(  
   [in] const TextSpan * pts,  
   [out, retval] BSTR * pbstrText  
);  

S’applique à