Partager via


IVsAddToolboxItems.AddItem Method

Add an item to the toolbox.

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

Syntax

'Déclaration
Function AddItem ( _
    pDO As IDataObject, _
    ptif As TBXITEMINFO(), _
    szItemID As String, _
    lpszTab As String _
) As Integer
'Utilisation
Dim instance As IVsAddToolboxItems
Dim pDO As IDataObject
Dim ptif As TBXITEMINFO()
Dim szItemID As String
Dim lpszTab As String
Dim returnValue As Integer

returnValue = instance.AddItem(pDO, ptif, _
    szItemID, lpszTab)
int AddItem(
    IDataObject pDO,
    TBXITEMINFO[] ptif,
    string szItemID,
    string lpszTab
)
int AddItem(
    [InAttribute] IDataObject^ pDO, 
    [InAttribute] array<TBXITEMINFO>^ ptif, 
    [InAttribute] String^ szItemID, 
    [InAttribute] String^ lpszTab
)
abstract AddItem : 
        pDO:IDataObject * 
        ptif:TBXITEMINFO[] * 
        szItemID:string * 
        lpszTab:string -> int 
function AddItem(
    pDO : IDataObject, 
    ptif : TBXITEMINFO[], 
    szItemID : String, 
    lpszTab : String
) : int

Parameters

  • szItemID
    Type: System.String
    [in] String that identifies the item.
  • lpszTab
    Type: System.String
    [[in] The localized name of the tab to add the ActiveX control to. The localized name can be obtained from the invariant non-localized name by calling GetIDOfTab

Return Value

Type: System.Int32

.NET Framework Security

See Also

Reference

IVsAddToolboxItems Interface

IVsAddToolboxItems Members

Microsoft.VisualStudio.Shell.Interop Namespace