IVsObjectList.GetTipText(UInt32, VSTREETOOLTIPTYPE, String) Yöntem

Tanım

İstenen ağaç listesi öğesi için araç ipucu metnine yönelik bir işaretçi döndürür.

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

Parametreler

index
UInt32

'ndaki İlgilendiğiniz düğümün dizinini belirtir.

eTipType
VSTREETOOLTIPTYPE

'ndaki Araç ipucu metninin türünü belirtir. Değerler VSTREETOOLTIPTYPE numaralandırmasından alınır.

ppszText
String

dışı Ağaç listesi öğesinin ipucu metnini içeren bir metin dizesinin işaretçisi.

Döndürülenler

Int32

Yöntem başarılı olursa, döndürür S_OK . Başarısız olursa, bir hata kodu döndürür.

Uygulamalar

Açıklamalar

COM Imzası

Vsshell. IDL dosyasından:

HRESULT IVsObjectList::GetTipText(  
   [in] ULONG Index,  
   [in] VSTREETOOLTIPTYPE eTipType,  
   [out] const WCHAR **ppszText  
);  

Bu yöntem, liste öğesi için ipucu metnine bir işaretçi döndürür. GetTipText genellikle uygulanmaz. E_NOTIMPLYa da E_FAIL bir çağrıya geri dönerseniz GetText , ipucu metni varsayılan olarak olur TTO_DISPLAYTEXT .

Şunlara uygulanır