Styles Settings in Windows Forms TabControl (TabControlAdv)

This section discusses the various Style Settings available in TabControlAdv.

TabStyles

TabControlAdv provides options to customize the TabStyle settings. Styles can be set through TabStyle property.

2D

This option helps to set the 2D theme.

// 2D

this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRenderer2D);
'2D

Me.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRenderer2D)

TabStyle is 2D

3D

This option helps to set the 3D theme.

// 3D

this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRenderer3D);
'3D

Me.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRenderer3D)

TabStyle is 3D

Workbook

This option helps to set the Workbook theme.

// Workbook

this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererWorkbookMode);
'Workbook

Me.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererWorkbookMode)

Workbook tab style

InternetExplorer7

This option helps to set the InternetExplorer7 theme.

// InternetExplorer7

this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererIE7);
'InternetExplorer7

Me.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererIE7)

Internet explorer tab style

OneNoteStyle

This option helps to set the OneNoteStyle theme.

// OneNoteStyle

this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.OneNoteStyleRenderer);
'OneNoteStyle

Me.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.OneNoteStyleRenderer)

One note tab style

VS2005DockingStyle

This option helps to set the VS2005DockingStyle.

// VS2005DockingStyle

this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererDockingWhidbey);
'VS2005DockingStyle

Me.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererDockingWhidbey)

VS2005 docking tab style

Office2007Blue

This option helps to set the Office2007Blue theme.

// Office2007Blue

this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererOffice2007);
this.tabControlAdv1.Office2007ColorScheme = Office2007Theme.Blue;
'Office2007Blue

Me.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererOffice2007)
Me.tabControlAdv1.Office2007ColorScheme = Office2007Theme.Blue

Office2007 blue tab style

Office2007Black

This option helps to set the Office2007Black theme.

// Office2007Black

this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererOffice2007);
this.tabControlAdv1.Office2007ColorScheme = Office2007Theme.Black;
'Office2007Black

Me.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererOffice2007)
Me.tabControlAdv1.Office2007ColorScheme = Office2007Theme.Black

Office2007 black tab style

Office2007Silver

This option helps to set the Office2007Silver theme.

// Office2007Silver

this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererOffice2007);
this.tabControlAdv1.Office2007ColorScheme = Office2007Theme.Silver;
'Office2007Silver

Me.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererOffice2007)
Me.tabControlAdv1.Office2007ColorScheme = Office2007Theme.Silver

Office2007 silver tab style

VS2005Style

This option helps to set the VS2005Style.

// VS2005Style

this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererWhidbey);
'VS2005Style

Me.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererWhidbey)

VS2005 tab style

VS2005DockingBetaStyle

This option helps to set the VS2005DockingBetaStyle.

// VS2005DockingBetaStyle

this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererDockingWhidbeyBeta);
'VS2005DockingBetaStyle

Me.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererDockingWhidbeyBeta)

VS2005 docking beta tab style

Office2003

This option helps to set the Office2003 theme.

// Office2003

this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererOffice2003);
'Office2003

Me.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererOffice2003)

Office2003 tab style

VS2008

This option helps to set the VS2008 theme.

// VS2008

this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererVS2008);
'VS2008

Me.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererVS2008)

VS2008 tab style

VS2010

This option helps to set the VS2010 theme.

// VS2010

this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererVS2010);
'VS2010

Me.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererVS2010)

VS2010 tab style

Metro

This option helps to set the Metro theme.

// Metro

this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererMetro);
'Metro

Me.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererMetro)

Metro tab style

Office2016Colorful

This option helps to set the Office2016Colorful theme.

// Office2016Colorful

this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererOffice2016Colorful);
'Office2016Colorful

Me.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererOffice2016Colorful)

Office2016 colorful tab style

Office2016White

This option helps to set the Office2016White theme.

// Office2016White

this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererOffice2016White);
'Office2016White

Me.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererOffice2016White)

Office2016 white tab style

Office2016DarkGray

This option helps to set the Office2016DarkGray theme.

// Office2016DarkGray

this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererOffice2016DarkGray);
'Office2016DarkGray

Me.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererOffice2016DarkGray)

Office2016 dark gray tab style

Office2016Black

This option helps to set the Office2016Black theme.

// Office2016Black

this.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererOffice2016Black);
'Office2016Black

Me.tabControlAdv1.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererOffice2016Black)

Office2016 black tab style

Custom color schemes

Custom colors can also be applied to the TabControlAdv.

//Set the below code for applying the managed color scheme.

this.FormTabControl.TabStyle = typeof(TabRendererOffice2007);

this.FormTabControl.Office2007ColorScheme = Office2007Theme.Managed;

Office2007Colors.ApplyManagedColors(this, Color.Green);
'Set the below code for applying the managed color scheme.

Me.FormTabControl.TabStyle = GetType(TabRendererOffice2007)

Me.FormTabControl.Office2007ColorScheme = Office2007Theme.Managed

Office2007Colors.ApplyManagedColors(Me, Color.Green)

Custom color

SizeMode

The SizeMode of the TabStrip allows to position the TabItems according to the selected options.

  • In Normal mode, the size of each tab depends on the text and image settings of the tab.
  • In Fixed mode, the size of each tab is the same as the value specified in the ItemSize property.
  • In ShrinkToFit mode, the width of each tab is shrunk so that all the tabs are visible (this is only applicable to the TabControlAdv in single-line mode).
  • In FillToRight mode, the width of each tab is sized so that each row of tabs occupies the entire width of the ContainerControl (this is only applicable to TabControlAdv with more than one row).
this.tabControlAdv1.SizeMode = Syncfusion.Windows.Forms.Tools.TabSizeMode.Normal;

this.tabControlAdv1.SizeMode = Syncfusion.Windows.Forms.Tools.TabSizeMode.Fixed;

this.tabControlAdv1.SizeMode = Syncfusion.Windows.Forms.Tools.TabSizeMode.ShrinkToFit;

this.tabControlAdv1.SizeMode = Syncfusion.Windows.Forms.Tools.TabSizeMode.FillToRight;
Me.tabControlAdv1.SizeMode = Syncfusion.Windows.Forms.Tools.TabSizeMode.Normal

Me.tabControlAdv1.SizeMode = Syncfusion.Windows.Forms.Tools.TabSizeMode.Fixed

Me.tabControlAdv1.SizeMode = Syncfusion.Windows.Forms.Tools.TabSizeMode.ShrinkToFit

Me.tabControlAdv1.SizeMode = Syncfusion.Windows.Forms.Tools.TabSizeMode.FillToRight

Size modes