IVsObjectList2.GetTipText(UInt32, VSTREETOOLTIPTYPE, 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 un pointeur vers le texte d'info-bulle pour l'élément de liste d'arborescence demandé.
public:
int GetTipText(System::UInt32 index, Microsoft::VisualStudio::Shell::Interop::VSTREETOOLTIPTYPE eTipType, [Runtime::InteropServices::Out] System::String ^ % ppszText);
int GetTipText(unsigned int index, Microsoft::VisualStudio::Shell::Interop::VSTREETOOLTIPTYPE eTipType, [Runtime::InteropServices::Out] std::wstring const & & ppszText);
public int GetTipText (uint index, Microsoft.VisualStudio.Shell.Interop.VSTREETOOLTIPTYPE eTipType, out string ppszText);
abstract member GetTipText : uint32 * Microsoft.VisualStudio.Shell.Interop.VSTREETOOLTIPTYPE * string -> int
Public Function GetTipText (index As UInteger, eTipType As VSTREETOOLTIPTYPE, ByRef ppszText As String) As Integer
Paramètres
- index
- UInt32
[in] Spécifie l'index du nœud concerné.
- eTipType
- VSTREETOOLTIPTYPE
[in] spécifie le type de texte d'info-bulle. Les valeurs proviennent de l'énumération VSTREETOOLTIPTYPE.
- ppszText
- String
[out] Pointeur vers une chaîne de texte contenant le texte info-bulle de l'élément de la liste d'arborescence.
Retours
Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.
Remarques
Signature COM
À partir de vsshell80. idl :
[C++]
HRESULT IVsObjectList2::GetTipText(
[in] ULONG Index,
[in] VSTREETOOLTIPTYPE eTipType,
[out] const WCHAR **ppszText
);
Cette méthode retourne un pointeur vers le texte info-bulle de l’élément de liste. GetTipText n’est généralement pas implémenté. Si vous retournez E_NOTIMPL ou E_FAIL à un GetText appel, le texte de l’info-bulle est la chaîne trouvée par défaut dans TTO_DISPLAYTEXT .
Si vous implémentez cette méthode, Notez que la chaîne retournée est la propriété de l' IVsObjectList2 implémentation et qu’elle doit continuer à exister pendant la durée de vie de l’instanciation de cette interface.