Category / Section
How to adjust the space between bars in a row in MainFrameBarManager?
1 min read
Adjust the space between bars in a row
The method AdjustNextBarsInRow of CommabdBar is used to adjust the space between the bars in a row. Please refer the below code snippet which illustrates this:
C#
CommandBar cmd1=this.mainFrameBarManager1.GetBarControl(this.bar1); foreach (CommandBar cmd in cmd1.Controller.GetCommandBarsList()) { cmd.Controller.GetDockBar(CommandBarDockBorder.Top).AdjustNextBarsInRow(cmd); }
VB
Dim cmd1 As CommandBar = Me.mainFrameBarManager1.GetBarControl(Me.bar1) For Each cmd As CommandBar In cmd1.Controller.GetCommandBarsList() cmd.Controller.GetDockBar(CommandBarDockBorder.Top).AdjustNextBarsInRow(cmd) Next cmd