menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DockTabControl - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DockTabControl

    The DockTabControl class, provides tab appearance in dock control.

    Inheritance
    System.Object
    BaseControl
    TabControlAdv
    DockTabControl
    Implements
    IThemeProvider
    IVisualStyle
    System.IDisposable
    ITabControl
    System.ComponentModel.ISupportInitialize
    ISupportOffice2007Theme
    IDockingManagerDesignerMouseHook
    Inherited Members
    BaseControl.CanApplyTheme
    BaseControl.CanOverrideStyle
    BaseControl.ControlName
    BaseControl.GetActiveThemeName()
    BaseControl.IThemeProvider.BaseThemeName
    BaseControl.IVisualStyle.VisualTheme
    BaseControl.RaiseThemeChanged(Object, ThemeChangedEventArgs)
    BaseControl.ThemeName
    BaseControl.ThemeNameChanged
    TabControlAdv.ActiveTabColor
    TabControlAdv.ActiveTabForeColor
    TabControlAdv.AdjustNavigationCtlDimensions(RectangleF)
    TabControlAdv.AdjustScrollButtonDimensions(RectangleF, Boolean)
    TabControlAdv.AdjustTabPanelBounds(RectangleF)
    TabControlAdv.AdjustTopGap
    TabControlAdv.AfterEdit
    TabControlAdv.ApplyScaleToControl(Single)
    TabControlAdv.BackgroundImage
    TabControlAdv.BackgroundImageLayout
    TabControlAdv.BeforeEdit
    TabControlAdv.BeforeTouchSize
    TabControlAdv.BeginInit()
    TabControlAdv.BorderColor
    TabControlAdv.BorderStyle
    TabControlAdv.BorderVisible
    TabControlAdv.BorderWidth
    TabControlAdv.BringSelectedTabToView()
    TabControlAdv.ChildControlsRemovedByDesigner(ArrayList)
    TabControlAdv.CloseButtonBackColor
    TabControlAdv.CloseButtonForeColor
    TabControlAdv.CloseButtonHoverForeColor
    TabControlAdv.CloseButtonPressedForeColor
    TabControlAdv.CloseTabOnMiddleClick
    TabControlAdv.ComputeTabPanelBounds()
    TabControlAdv.ComputeTabPositions()
    TabControlAdv.ContextMenu_CloseAllButThis(Object, EventArgs)
    TabControlAdv.CreateControlsInstance()
    TabControlAdv.CurDefaultTabPanelProperties
    TabControlAdv.DefaultSize
    TabControlAdv.DestroyScrollButtons(Boolean)
    TabControlAdv.DisableInactivePageImage
    TabControlAdv.DisplayRectangle
    TabControlAdv.DrawAdditionalBorders(Graphics)
    TabControlAdv.DrawBordersOffice2003(Graphics)
    TabControlAdv.DrawBordersVS2005(Graphics)
    TabControlAdv.DrawGroupOffice2003Borders(Graphics)
    TabControlAdv.DrawItem
    TabControlAdv.DrawMetroBorders(Graphics)
    TabControlAdv.DrawVS2008Borders(Graphics)
    TabControlAdv.EnableTouchMode
    TabControlAdv.EndInit()
    TabControlAdv.EndLabelEdit(Boolean)
    TabControlAdv.FixedSingleBorderColor
    TabControlAdv.FocusOnTabClick
    TabControlAdv.ForeColor
    TabControlAdv.GetBorderRect()
    TabControlAdv.GetControlName(String)
    TabControlAdv.GetRightBottomBorderColor()
    TabControlAdv.GetRightBottomBorderShadeColor()
    TabControlAdv.GetTabPanelBounds()
    TabControlAdv.GetTabRect(Int32)
    TabControlAdv.GetTopLeftBorderColor()
    TabControlAdv.HitTestTabs(Point)
    TabControlAdv.HitTestTabs(Point, Boolean)
    TabControlAdv.HotTrack
    TabControlAdv.HotTracked
    TabControlAdv.ImageAlignmentR
    TabControlAdv.ImageList
    TabControlAdv.ImageOffset
    TabControlAdv.InactiveCloseButtonForeColor
    TabControlAdv.InactiveTabColor
    TabControlAdv.InActiveTabForeColor
    TabControlAdv.Init()
    TabControlAdv.InitScrollButtons()
    TabControlAdv.InvalidatePanel()
    TabControlAdv.Is2DStyle
    TabControlAdv.IsBlendDarkStyle
    TabControlAdv.IsBlendLightStyle
    TabControlAdv.IsDockingWhidbeyStyle
    TabControlAdv.IsDockingWhidbeyStyleBeta
    TabControlAdv.IsEditing
    TabControlAdv.IsIE7Style
    TabControlAdv.IsInitializing
    TabControlAdv.IsInputKey(Keys)
    TabControlAdv.IsMetroStyle
    TabControlAdv.IsOffice2003Style
    TabControlAdv.IsOffice2007Style
    TabControlAdv.IsOffice2010Style
    TabControlAdv.IsOffice2016BlackStyle
    TabControlAdv.IsOffice2016ColorfulStyle
    TabControlAdv.IsOffice2016DarkGrayStyle
    TabControlAdv.IsOffice2016WhiteStyle
    TabControlAdv.IsOneNoteStyle
    TabControlAdv.IsOneNoteStyleFlatTabs
    TabControlAdv.ISupportOffice2007Theme.EnableOffice2007Style()
    TabControlAdv.ISupportOffice2007Theme.Office2007ColorTheme
    TabControlAdv.IsValidRendererType(Type)
    TabControlAdv.IsVisualStyleEnabled
    TabControlAdv.IsVS2008
    TabControlAdv.IsVS2010
    TabControlAdv.IsWhidbeyStyle
    TabControlAdv.ITabControl.get_ClientRectangle()
    TabControlAdv.ITabControl.GetControl()
    TabControlAdv.ITabControl.GetGraphics()
    TabControlAdv.ITabControl.IsDesignMode()
    TabControlAdv.ITabControl.OnRepaint(RectangleF)
    TabControlAdv.ITabControl.OnScrollPositionChanged()
    TabControlAdv.ITabControl.ThemedDrawing
    TabControlAdv.ITabControl.ThemesEnabled
    TabControlAdv.ItemSize
    TabControlAdv.KeepSelectedTabInFrontRow
    TabControlAdv.LabelEdit
    TabControlAdv.LabelEditChanged
    TabControlAdv.LabelEditTextChanged
    TabControlAdv.Layout(Graphics, Boolean)
    TabControlAdv.LevelTextAndImage
    TabControlAdv.LoadState()
    TabControlAdv.LoadState(AppStateSerializer)
    TabControlAdv.m_sbScrollButtons
    TabControlAdv.m_tabPanelRenderer
    TabControlAdv.Multiline
    TabControlAdv.MultilineText
    TabControlAdv.NeedLayout
    TabControlAdv.NeedRotateTextWhenVertical
    TabControlAdv.Office2007ColorScheme
    TabControlAdv.Office2010ColorTheme
    TabControlAdv.OnAfterEdit(EditEventArgs)
    TabControlAdv.OnBeforeEdit(EditEventArgs)
    TabControlAdv.OnCanApplyThemeChanged(Boolean)
    TabControlAdv.OnCanOverrideStyleChanged(Boolean)
    TabControlAdv.OnDockChanged(EventArgs)
    TabControlAdv.OnDrawItem(DrawTabEventArgs)
    TabControlAdv.OnEnter(EventArgs)
    TabControlAdv.OnFontChanged(EventArgs)
    TabControlAdv.OnGotFocus(EventArgs)
    TabControlAdv.OnHandleCreated(EventArgs)
    TabControlAdv.OnHandleDestroyed(EventArgs)
    TabControlAdv.OnKeyDown(KeyEventArgs)
    TabControlAdv.OnKeyUp(KeyEventArgs)
    TabControlAdv.OnLabelEdit()
    TabControlAdv.OnLabelEditTextChanged()
    TabControlAdv.OnLayout(LayoutEventArgs)
    TabControlAdv.OnLeave(EventArgs)
    TabControlAdv.OnLostFocus(EventArgs)
    TabControlAdv.OnMouseEnter(EventArgs)
    TabControlAdv.OnMouseHover(EventArgs)
    TabControlAdv.OnRightToLeftChanged(EventArgs)
    TabControlAdv.OnSelectedIndexChanged(EventArgs)
    TabControlAdv.OnSizeChanged(EventArgs)
    TabControlAdv.OnSystemColorsChanged(EventArgs)
    TabControlAdv.OnTabMoving(TabMovingEventArgs)
    TabControlAdv.OnTabPanelBoundsAffected()
    TabControlAdv.OnTabPrimitiveClick(TabPrimitiveClickEventArgs)
    TabControlAdv.OnTabsOrderChanged()
    TabControlAdv.OnThemeNameChanged(String)
    TabControlAdv.OnVisibleChanged(EventArgs)
    TabControlAdv.PersistTabState
    TabControlAdv.ProcessCmdKey(Message, Keys)
    TabControlAdv.ProcessKeyPreview(Message)
    TabControlAdv.ProcessMnemonic(Char)
    TabControlAdv.RaiseAfterEdit(EditEventArgs)
    TabControlAdv.RaiseBeforeEdit(EditEventArgs)
    TabControlAdv.RaiseLabelEditChanged()
    TabControlAdv.RaiseLabelEditTextChanged()
    TabControlAdv.RaiseTabMoving(TabMovingEventArgs)
    TabControlAdv.RaiseTabsOrderChanged()
    TabControlAdv.RemoveAll()
    TabControlAdv.Renderer
    TabControlAdv.RendererChanged(TabPanelRenderer)
    TabControlAdv.ReservedSpace
    TabControlAdv.ReserveTabSpace
    TabControlAdv.ResetActiveTabColor()
    TabControlAdv.ResetActiveTabFont()
    TabControlAdv.ResetBorderColor()
    TabControlAdv.ResetCloseButtonForeColor()
    TabControlAdv.ResetCloseButtonHoverForeColor()
    TabControlAdv.ResetCloseButtonPressedForeColor()
    TabControlAdv.ResetFixedSingleBorderColor()
    TabControlAdv.ResetFont()
    TabControlAdv.ResetInactiveCloseButtonForeColor()
    TabControlAdv.ResetInactiveTabColor()
    TabControlAdv.ResetItemSize()
    TabControlAdv.ResetTabPanelBackColor()
    TabControlAdv.RotateTabsWhenRTL
    TabControlAdv.RotateTextWhenVertical
    TabControlAdv.SaveState()
    TabControlAdv.SaveState(AppStateSerializer)
    TabControlAdv.ScrollButtons
    TabControlAdv.ScrollIncrement
    TabControlAdv.SelectedIndex
    TabControlAdv.SelectedIndexChanged
    TabControlAdv.SelectedIndexChanging
    TabControlAdv.SelectedTab
    TabControlAdv.SeparatorColor
    TabControlAdv.SetNeedLayout(Boolean)
    TabControlAdv.SetRegion()
    TabControlAdv.SetTabPanelBounds(RectangleF)
    TabControlAdv.ShouldDrawCloseButton(Int32)
    TabControlAdv.ShouldDrawCloseButton(Int32, Boolean)
    TabControlAdv.ShouldDrawThemed
    TabControlAdv.ShouldSerializeActiveTabColor()
    TabControlAdv.ShouldSerializeActiveTabFont()
    TabControlAdv.ShouldSerializeBorderColor()
    TabControlAdv.ShouldSerializeCloseButtonBackColor()
    TabControlAdv.ShouldSerializeCloseButtonForeColor()
    TabControlAdv.ShouldSerializeCloseButtonHoverForeColor()
    TabControlAdv.ShouldSerializeCloseButtonPressedForeColor()
    TabControlAdv.ShouldSerializeFixedSingleBorderColor()
    TabControlAdv.ShouldSerializeInactiveCloseButtonForeColor()
    TabControlAdv.ShouldSerializeInactiveTabColor()
    TabControlAdv.ShouldSerializeItemSize()
    TabControlAdv.ShouldSerializePadding()
    TabControlAdv.ShouldSerializeShowCloseButtonHighLightBackColor()
    TabControlAdv.ShouldSerializeTabPanelBackColor()
    TabControlAdv.ShouldSerializeTextAlignment()
    TabControlAdv.ShowCloseButtonForActiveTabOnly
    TabControlAdv.ShowCloseButtonHighLightBackColor
    TabControlAdv.ShowDefaultContextMenu
    TabControlAdv.ShowSeparator
    TabControlAdv.ShowSuperToolTips
    TabControlAdv.ShowTabCloseButton
    TabControlAdv.ShowToolTips
    TabControlAdv.SizeMode
    TabControlAdv.StartLabelEdit()
    TabControlAdv.SwitchPagesForDialogKeys
    TabControlAdv.TabCount
    TabControlAdv.TabGap
    TabControlAdv.TabMoving
    TabControlAdv.TabPages
    TabControlAdv.TabPanelBackColor
    TabControlAdv.TabPanelData
    TabControlAdv.TabPrimitiveClick
    TabControlAdv.TabPrimitivesHost
    TabControlAdv.TabsOrderChanged
    TabControlAdv.TabStyle
    TabControlAdv.Text
    TabControlAdv.TextAlignment
    TabControlAdv.TextLineAlignment
    TabControlAdv.ThemesEnabled
    TabControlAdv.ThemeStyle
    TabControlAdv.ToString()
    TabControlAdv.UpdateScrollButtonsStyle()
    TabControlAdv.UpdateScrollButtonState()
    TabControlAdv.UpdateSelectedTabPage(Boolean)
    TabControlAdv.UpDownEventHandler(Object, UpDownEventArgs)
    TabControlAdv.UseMnemonic
    TabControlAdv.UserMoveTabs
    TabControlAdv.ValidateFocusedTab()
    TabControlAdv.ValidateSelectedIndex()
    TabControlAdv.VerticalAlignment
    TabControlAdv.VSLikeScrollButton
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class DockTabControl : TabControlAdv, IThemeProvider, IVisualStyle, IDisposable, ITabControl, ISupportInitialize, ISupportOffice2007Theme, IDockingManagerDesignerMouseHook

    Constructors

    DockTabControl(DockingManager, DockHostController)

    Constructor of the DockTabControl.

    Declaration
    public DockTabControl(DockingManager dmgr, DockHostController dhc)
    Parameters
    Type Name Description
    DockingManager dmgr

    The DockingManager instance.

    DockHostController dhc

    The DockHostController instance.

    Fields

    nNamingCount

    Declaration
    protected static int nNamingCount
    Field Value
    Type
    System.Int32

    nSwitchIndex

    Declaration
    protected int nSwitchIndex
    Field Value
    Type
    System.Int32

    tdTab

    Declaration
    protected ThemedControlDrawing tdTab
    Field Value
    Type
    ThemedControlDrawing

    Properties

    ActiveTabFont

    Gets / Sets the Active font.

    Declaration
    public override Font ActiveTabFont { get; set; }
    Property Value
    Type
    System.Drawing.Font
    Overrides
    TabControlAdv.ActiveTabFont

    Alignment

    Gets / Sets the Tab alignment.

    Declaration
    public override TabAlignment Alignment { get; set; }
    Property Value
    Type
    System.Windows.Forms.TabAlignment
    Overrides
    TabControlAdv.Alignment

    Font

    Gets / Sets the Font.

    Declaration
    public override Font Font { get; set; }
    Property Value
    Type
    System.Drawing.Font
    Overrides
    TabControlAdv.Font

    Padding

    Gets/Sets the padding.

    Declaration
    public override Point Padding { get; set; }
    Property Value
    Type
    System.Drawing.Point
    Overrides
    TabControlAdv.Padding

    ShowScroll

    Indicates the Scroll button whether should display or not

    Declaration
    public override bool ShowScroll { get; set; }
    Property Value
    Type
    System.Boolean
    Overrides
    TabControlAdv.ShowScroll

    ThemeDraw

    Gets the tab for ThemedControlDrawing.

    Declaration
    public ThemedControlDrawing ThemeDraw { get; }
    Property Value
    Type
    ThemedControlDrawing

    Methods

    AddTab(DockTabPage)

    Add the DockTab page in Docked tab control.

    Declaration
    public void AddTab(DockTabPage newpage)
    Parameters
    Type Name Description
    DockTabPage newpage

    The DockTabPage instance.

    CreateAccessibilityInstance()

    Creates a new accessibility object in DockTabControl.

    Declaration
    protected override AccessibleObject CreateAccessibilityInstance()
    Returns
    Type Description
    System.Windows.Forms.AccessibleObject

    A new System.Windows.Forms.AccessibleObject for the DockTabControl, when AccessibilityEnabled for DockingManager is set as true

    Overrides
    TabControlAdv.CreateAccessibilityInstance()

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool bdisposing)
    Parameters
    Type Name Description
    System.Boolean bdisposing
    Overrides
    TabControlAdv.Dispose(Boolean)

    dockingManager_ImageListChanged(Object, EventArgs)

    Declaration
    protected void dockingManager_ImageListChanged(object obj, EventArgs e)
    Parameters
    Type Name Description
    System.Object obj
    System.EventArgs e

    Draw3DBorder(Graphics, RectangleF)

    Draws the 3D border around the tab control.

    Declaration
    protected override void Draw3DBorder(Graphics g, RectangleF borderBounds)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    The Graphics object into which the border is drawn.

    System.Drawing.RectangleF borderBounds

    The rectangular bounds within which the border is drawn.

    Overrides
    TabControlAdv.Draw3DBorder(Graphics, RectangleF)

    DrawPanelBackground(Graphics)

    Draw the background of the MDI panel.

    Declaration
    protected override void DrawPanelBackground(Graphics g)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    Graphics used to draw the background.

    Overrides
    TabControlAdv.DrawPanelBackground(Graphics)

    GetDesignMode()

    Gets the design mode.

    Declaration
    public bool GetDesignMode()
    Returns
    Type
    System.Boolean

    GetTabHitIndex(Point)

    Gets the index of the tab item

    Declaration
    public int GetTabHitIndex(Point pt)
    Parameters
    Type Name Description
    System.Drawing.Point pt

    The mouse co ordinate point.

    Returns
    Type
    System.Int32

    HandleDoubleClick(Point)

    Handle the Double click event.

    Declaration
    public void HandleDoubleClick(Point ptscreen)
    Parameters
    Type Name Description
    System.Drawing.Point ptscreen

    The mouse co ordinate point.

    HandleMouseDown(MouseButtons, Point)

    Handle the Mouse down event.

    Declaration
    public void HandleMouseDown(MouseButtons button, Point ptscreen)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseButtons button

    The MouseButtonse

    System.Drawing.Point ptscreen

    The mouse co ordinate point.

    HandleMouseLeave()

    Handle the Double click event.

    Declaration
    public void HandleMouseLeave()

    HandleMouseMove(MouseButtons, Point)

    Handle the Mouse move event.

    Declaration
    public void HandleMouseMove(MouseButtons button, Point ptscreen)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseButtons button

    The MouseButtonse

    System.Drawing.Point ptscreen

    The mouse co ordinate point.

    HandleMouseUp(MouseButtons, Point)

    Handle the Mouse up event.

    Declaration
    public void HandleMouseUp(MouseButtons button, Point ptscreen)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseButtons button

    The MouseButtonse

    System.Drawing.Point ptscreen

    The mouse co ordinate point.

    InitializeDockTabControl(DockingManager, DockHostController)

    Declaration
    protected virtual void InitializeDockTabControl(DockingManager dmgr, DockHostController dhc)
    Parameters
    Type Name Description
    DockingManager dmgr
    DockHostController dhc

    InitiateFloatingResize(Point, Int32)

    Initiate the Floating form resize.

    Declaration
    public void InitiateFloatingResize(Point ptscreen, int nchittest)
    Parameters
    Type Name Description
    System.Drawing.Point ptscreen

    The mouse co ordinate point.

    System.Int32 nchittest

    InsertTab(Int32, DockTabPage)

    Insert the tab in DcokTab control.

    Declaration
    public void InsertTab(int nindex, DockTabPage newpage)
    Parameters
    Type Name Description
    System.Int32 nindex

    The index which needs to be insert the tabpage

    DockTabPage newpage

    The DockTabpage instance.

    OnDragOver(DragEventArgs)

    Declaration
    protected override void OnDragOver(DragEventArgs drgevent)
    Parameters
    Type Name Description
    System.Windows.Forms.DragEventArgs drgevent

    OnMouseDown(MouseEventArgs)

    Declaration
    protected override void OnMouseDown(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e
    Overrides
    TabControlAdv.OnMouseDown(MouseEventArgs)

    OnMouseLeave(EventArgs)

    Declaration
    protected override void OnMouseLeave(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e
    Overrides
    TabControlAdv.OnMouseLeave(EventArgs)

    OnMouseMove(MouseEventArgs)

    Declaration
    protected override void OnMouseMove(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e
    Overrides
    TabControlAdv.OnMouseMove(MouseEventArgs)

    OnMouseUp(MouseEventArgs)

    Declaration
    protected override void OnMouseUp(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e
    Overrides
    TabControlAdv.OnMouseUp(MouseEventArgs)

    OnPaint(PaintEventArgs)

    Declaration
    protected override void OnPaint(PaintEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs e
    Overrides
    TabControlAdv.OnPaint(PaintEventArgs)

    OnSelectedIndexChanging(SelectedIndexChangingEventArgs)

    Raises the event when select the document child.

    Declaration
    protected override void OnSelectedIndexChanging(SelectedIndexChangingEventArgs e)
    Parameters
    Type Name Description
    SelectedIndexChangingEventArgs e

    An instance that contains the event data.

    Overrides
    TabControlAdv.OnSelectedIndexChanging(SelectedIndexChangingEventArgs)

    OnStyleChanged()

    Declaration
    protected override void OnStyleChanged()
    Overrides
    TabControlAdv.OnStyleChanged()

    ReparentTabChildren()

    This hostcontroller calls this method, when it's parent has changed. Reparent remaining tab dockclients to the hostcontroller's new parent

    Declaration
    public void ReparentTabChildren()

    UpdateOffice2007Theme()

    Declaration
    protected void UpdateOffice2007Theme()

    UpdateRenderer()

    Update the Renderer.

    Declaration
    public void UpdateRenderer()

    WndProc(ref Message)

    Declaration
    protected override void WndProc(ref Message msg)
    Parameters
    Type Name Description
    System.Windows.Forms.Message msg
    Overrides
    TabControlAdv.WndProc(ref Message)

    Implements

    IThemeProvider
    IVisualStyle
    System.IDisposable
    ITabControl
    System.ComponentModel.ISupportInitialize
    ISupportOffice2007Theme
    IDockingManagerDesignerMouseHook
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved