You can create tab groups when DocumentContainer.Mode is TDI where the tabs will be grouped vertically and horizontally based on the needs. It can be acheived by using ContextMenu options.
##Create Vertical Tab Group
If create a vertical tab group, select “New Vertical Tab Group” context menu item.
##Create Horizontal Tab Group
If create the horizontal tab group, select “New Horizontal Tab Group” context menu item.