Category / Section
How to align the controls in multiline on ToolStripEx in WinForms RibbonControlAdv?
1 min read
Align the controls in multiline
The RowCount property of ToolStripPanelItem used to arrange the controls in any number of rows inside the ToolStripPanelItem.
C#
this.toolStripPanelItem1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {this.cutToolStripBtn,this.copyToolStripBtn}); this.toolStripPanelItem1.RowCount = 2; this.toolStripEx1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {this.pasteToolStripDropDownBtn,this.toolStripPanelItem1});
VB
Dim System.Windows.Forms.ToolStripItem() As Me.toolStripPanelItem1.Items.AddRange(New{Me.cutToolStripBtn,Me.copyToolStripBtn}) Me.toolStripPanelItem1.RowCount = 2 Dim System.Windows.Forms.ToolStripItem() As Me.toolStripEx1.Items.AddRange(New {Me.pasteToolStripDropDownBtn,Me.toolStripPanelItem1})