menu

WinForms

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

    Show / Hide Table of Contents

    Class TabUIDefaultProperties

    Specifies certain default properties for a tab renderer used by TabControlAdv.

    Inheritance
    System.Object
    TabUIDefaultProperties
    BlendDarkRendererProperty
    BlendLightRendererProperty
    OneNoteStyleFlatTabPanelProperty
    OneNoteStyleRendererProperty
    TabUIVS2005Properties
    TabUIVS2010Properties
    TabUIVS2012Properties
    TabPanelProperty2D
    TabPanelProperty3D
    TabPanelPropertyTabGroup
    TabPanelPropertyWorkbookMode
    Implements
    ITabDefaultProperties
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class TabUIDefaultProperties : ITabDefaultProperties
    Remarks

    Use this class only when you are deriving from TabRendererBase to create a custom tab renderer.

    Constructors

    TabUIDefaultProperties()

    Declaration
    public TabUIDefaultProperties()

    Properties

    DrawEllipsis

    Indicates whether to draw ellipsis if text width is larger than tab width.

    Declaration
    public virtual bool DrawEllipsis { get; }
    Property Value
    Type
    System.Boolean

    DrawLeftToRight

    Indicates whether to draw from left to right.

    Declaration
    public virtual bool DrawLeftToRight { get; }
    Property Value
    Type
    System.Boolean

    ShowInDesignMode

    Indicates whether this tab type should be made available in the design-time property grid for the TabStyle property.

    Declaration
    public virtual bool ShowInDesignMode { get; }
    Property Value
    Type
    System.Boolean

    Methods

    DefaultActiveTabColor(ITabPanelData, ITabControl)

    Returns the default Active Tab Color.

    Declaration
    public virtual Color DefaultActiveTabColor(ITabPanelData panelData, ITabControl tabControl)
    Parameters
    Type Name Description
    ITabPanelData panelData

    The tab panel data.

    ITabControl tabControl

    The tab control.

    Returns
    Type Description
    System.Drawing.Color

    A Color value.

    Remarks

    This implementation returns the tab control's BackColor.

    DefaultActiveTabFont(ITabPanelData, ITabControl)

    Returns the default active tab panel font.

    Declaration
    public virtual Font DefaultActiveTabFont(ITabPanelData panelData, ITabControl tabControl)
    Parameters
    Type Name Description
    ITabPanelData panelData

    The tab panel data.

    ITabControl tabControl

    The tab control.

    Returns
    Type Description
    System.Drawing.Font

    A Font value.

    Remarks

    Returns the default inactive tab font, after making it bold.

    DefaultFixedSingleBorderColor(ITabPanelData, ITabControl)

    Returns the default single border color.

    Declaration
    public virtual Color DefaultFixedSingleBorderColor(ITabPanelData panelData, ITabControl tabControl)
    Parameters
    Type Name Description
    ITabPanelData panelData

    The tab panel data.

    ITabControl tabControl

    The tab control.

    Returns
    Type Description
    System.Drawing.Color

    A Color value.

    Remarks

    This implementation returns a system color.

    DefaultInactiveTabColor(ITabPanelData, ITabControl)

    Returns the default Inactive Tab Color.

    Declaration
    public virtual Color DefaultInactiveTabColor(ITabPanelData panelData, ITabControl tabControl)
    Parameters
    Type Name Description
    ITabPanelData panelData

    The tab panel data.

    ITabControl tabControl

    The tab control.

    Returns
    Type Description
    System.Drawing.Color

    A Color value.

    Remarks

    This implementation returns the tab control's BackColor.

    DefaultInactiveTabFont(ITabPanelData, ITabControl)

    Returns the default inactive tab panel font.

    Declaration
    public virtual Font DefaultInactiveTabFont(ITabPanelData panelData, ITabControl tabControl)
    Parameters
    Type Name Description
    ITabPanelData panelData

    The tab panel data.

    ITabControl tabControl

    The tab control.

    Returns
    Type Description
    System.Drawing.Font

    A Font value.

    Remarks

    If the panelData's Font is not null, it is returned. If not, the default tab panel font is returned.

    DefaultTabForeColor(ITabPanelData, ITabControl)

    Returns the default forecolor for the tabs.

    Declaration
    public virtual Color DefaultTabForeColor(ITabPanelData panelData, ITabControl tabControl)
    Parameters
    Type Name Description
    ITabPanelData panelData

    The tab panel data.

    ITabControl tabControl

    The tab control.

    Returns
    Type Description
    System.Drawing.Color

    A Color value.

    Remarks

    This implementation returns SystemColors.WindowText.

    DefaultTabPanelBackgroundColor(ITabPanelData, ITabControl)

    Returns the default backcolor for the panel.

    Declaration
    public virtual Color DefaultTabPanelBackgroundColor(ITabPanelData panelData, ITabControl tabControl)
    Parameters
    Type Name Description
    ITabPanelData panelData

    The tab panel data.

    ITabControl tabControl

    The tab control.

    Returns
    Type Description
    System.Drawing.Color

    A Color value.

    Remarks

    This implementation returns the tab control's BackColor.

    DefaultTabPanelFont(ITabPanelData, ITabControl)

    Returns the default tab panel font.

    Declaration
    public virtual Font DefaultTabPanelFont(ITabPanelData panelData, ITabControl tabControl)
    Parameters
    Type Name Description
    ITabPanelData panelData

    The tab panel data.

    ITabControl tabControl

    The tab control.

    Returns
    Type Description
    System.Drawing.Font

    A Font value.

    Remarks

    This implementation returns the tab control's font.

    GetOverlapSize(SizeF)

    Returns the overlap size.

    Declaration
    public virtual SizeF GetOverlapSize(SizeF tabSize)
    Parameters
    Type Name Description
    System.Drawing.SizeF tabSize
    Returns
    Type Description
    System.Drawing.SizeF

    The overlap size.

    Remarks

    This implementation returns (0, 0).

    IsBackgroundSolid()

    Indicates whether the background color is solid.

    Declaration
    public virtual bool IsBackgroundSolid()
    Returns
    Type Description
    System.Boolean

    True if solid; false otherwise.

    OnPaintPanelBackground(ITabControl, Graphics, Color, Rectangle)

    Draws the background of the tab panel.

    Declaration
    public virtual void OnPaintPanelBackground(ITabControl tabControl, Graphics g, Color bgColor, Rectangle bounds)
    Parameters
    Type Name Description
    ITabControl tabControl

    The parent ITabControl implementation.

    System.Drawing.Graphics g

    The Graphics into which to draw.

    System.Drawing.Color bgColor

    The background color.

    System.Drawing.Rectangle bounds

    The rectangular bounds of the tab panel.

    Implements

    ITabDefaultProperties
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved