IVsObjectList::GetTipText Method (UInt32, VSTREETOOLTIPTYPE, String^)

 

Returns a pointer to the tool tip text for the requested tree list item.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int GetTipText(
	unsigned int index,
	VSTREETOOLTIPTYPE eTipType,
	[OutAttribute] String^% ppszText
)

Parameters

index
Type: System::UInt32

[in] Specifies the index of the node of interest.

eTipType
Type: Microsoft.VisualStudio.Shell.Interop::VSTREETOOLTIPTYPE

[in] Specifies the type of tool tip text. Values are taken from the VSTREETOOLTIPTYPE enumeration.

ppszText
Type: System::String^

[out] Pointer to a text string containing the tree list item's tip text.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell.idl:

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

This method returns a pointer to the tip text for the list item. GetTipText is usually not implemented. If you return E_NOTIMPL or E_FAIL to a GetText call, tip text will default to TTO_DISPLAYTEXT.

Return to top
Show: