BCGControlBar Library for .NET
InsertButton Method




A position of the button to insert.
A button to insert.
Inserts the specified button to the toolbar button collection at the specified position.
Syntax
'Declaration
 
Public Overridable Function InsertButton( _
   ByVal insertAt As Integer, _
   ByVal button As ToolbarButton _
) As Boolean
'Usage
 
Dim instance As CommandBar
Dim insertAt As Integer
Dim button As ToolbarButton
Dim value As Boolean
 
value = instance.InsertButton(insertAt, button)
public virtual bool InsertButton( 
   int insertAt,
   ToolbarButton button
)
public: virtual bool InsertButton( 
   int insertAt,
   ToolbarButton* button
) 
public:
virtual bool InsertButton( 
   int insertAt,
   ToolbarButton^ button
) 

Parameters

insertAt
A position of the button to insert.
button
A button 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

CommandBar Class
CommandBar Members

Send Feedback