TBXITEMINFO Structure

Specifies information on toolbox items. Used on IVsToolbox::AddItem and IVsToolboxDataProvider::GetItemInfo.

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

Syntax

'Declaration
Public Structure TBXITEMINFO
public struct TBXITEMINFO
public value class TBXITEMINFO
[<Sealed>]
type TBXITEMINFO =  struct end
JScript supports the use of structures, but not the declaration of new ones.

The TBXITEMINFO type exposes the following members.

Methods

  Name Description
Public method Equals Indicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from ValueType.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)

Top

Fields

  Name Description
Public field bstrText BSTR containing the tool tips/label text of toolbox item.
Public field clrTransparent COLORREF item specifying the transparent color in bitmap.
Public field dwFlags DWORD specifying the item info flags. Values are taken from the __TBXITEMINFOFLAGS enumeration.
Public field hBmp Specifies a 16x16 bitmap for the toolbox.
Public field iImageIndex INT specifying the image index of the item.
Public field iImageWidth Specifies the width of the item image.

Top

Remarks

Note

hBmp is placed in an ImageList, so the caller can destroy on return or have toolbox delete it via TBXIF_DELETEBITMAP

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace