IVsTextImage.GetTextBSTR(TextSpan[], String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
- pbstrText
- String
[out] Pointeur vers un BSTR contenant le texte.
Retours
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
);