Articles in this section
Category / Section

How to group items (insert separators) in the WinForms XPToolBar?

1 min read

Group items in an XPToolBar

Through Designer:

Case 1: In the presence of a BarManager, the separators can be added to the items by right-clicking on the items and selecting the Begin A Group option similar to Menus.

Case 2: In the absence of a BarManager, the separators can be added to the items by editing the XPToolbar.SeparatorIndices property list.

Through Code:

C#

this.xpToolBar1.SeparatorIndices.AddRange(new int[] {1, 2});

VB

Me.xpToolBar1.SeparatorIndices.AddRange(New Integer() {1, 2})

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied