Articles in this section

How to adjust the space between bars in a row in MainFrameBarManager?

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


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