BCGControlBar Library for .NET
AddButton(String,Int32,Int32,Int32) Method




A text associated with the OutlookItem to add.
An index of the image to display on the OutlookBarItem.
An identifier of the command associated with the OutlookItem.
A position in the ItemCollection of the OutlookItem to insert.
Adds an Outlook item to the OutlookBarPane.
Syntax
'Declaration
 
Public Overloads Sub AddButton( _
   ByVal text As String, _
   ByVal ImageIndex As Integer, _
   ByVal ID As Integer, _
   ByVal iInsertAt As Integer _
) 
'Usage
 
Dim instance As OutlookBarPane
Dim text As String
Dim ImageIndex As Integer
Dim ID As Integer
Dim iInsertAt As Integer
 
instance.AddButton(text, ImageIndex, ID, iInsertAt)
public void AddButton( 
   string text,
   int ImageIndex,
   int ID,
   int iInsertAt
)
public: void AddButton( 
   string* text,
   int ImageIndex,
   int ID,
   int iInsertAt
) 
public:
void AddButton( 
   String^ text,
   int ImageIndex,
   int ID,
   int iInsertAt
) 

Parameters

text
A text associated with the OutlookItem to add.
ImageIndex
An index of the image to display on the OutlookBarItem.
ID
An identifier of the command associated with the OutlookItem.
iInsertAt
A position in the ItemCollection of the OutlookItem to insert.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

OutlookBarPane Class
OutlookBarPane Members
Overload List

Send Feedback