Xceed Chart for WinForms v4.4 Documentation
AddToolBar Method
Example 


Xceed.Chart.UIControls.v4.4 Assembly > Xceed.Chart.UIControls Namespace > CommandBar Class : AddToolBar Method
The toolbar to add.
Index of row to add to. If this index is less than zero or bigger than the current row count a new row is created.
Adds a new toolbar at the specified row index
Syntax
'Declaration
 
Public Sub AddToolBar( _
   ByVal toolbar As ToolBar, _
   ByVal rowIndex As Integer _
) 
'Usage
 
Dim instance As CommandBar
Dim toolbar As ToolBar
Dim rowIndex As Integer
 
instance.AddToolBar(toolbar, rowIndex)
public void AddToolBar( 
   ToolBar toolbar,
   int rowIndex
)

Parameters

toolbar
The toolbar to add.
rowIndex
Index of row to add to. If this index is less than zero or bigger than the current row count a new row is created.
Example
This example shows how to add a new toolbar to a CommandBar instance and place it in a new row:
' create a new ToolBar object
Dim toolbar As ToolBar =  New ToolBar() 
' add it in a new row
nCommandBar1.AddToolBar(toolbar, -1)
// create a new ToolBar object
ToolBar toolbar = new ToolBar();
// add it in a new row
nCommandBar1.AddToolBar(toolbar, -1);
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