menu

WinForms

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

    Show / Hide Table of Contents

    Interface ITabDefaultProperties

    Specifies the mechanism by which the TabControlAdv will get the default properties associated with a tab renderer.

    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public interface ITabDefaultProperties

    Properties

    DrawEllipsis

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

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

    DrawLeftToRight

    Indicates whether to draw the tabs from left to right or from right to left.

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

    This is useful when you implement overlapped tabs.

    ShowInDesignMode

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

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

    Methods

    DefaultActiveTabColor(ITabPanelData, ITabControl)

    Specifies the default active tab color.

    Declaration
    Color DefaultActiveTabColor(ITabPanelData panelData, ITabControl tabControl)
    Parameters
    Type Name Description
    ITabPanelData panelData
    ITabControl tabControl
    Returns
    Type
    System.Drawing.Color

    DefaultActiveTabFont(ITabPanelData, ITabControl)

    Specifies the default active tab font.

    Declaration
    Font DefaultActiveTabFont(ITabPanelData panelData, ITabControl tabControl)
    Parameters
    Type Name Description
    ITabPanelData panelData
    ITabControl tabControl
    Returns
    Type
    System.Drawing.Font

    DefaultFixedSingleBorderColor(ITabPanelData, ITabControl)

    Specifies the default single border color.

    Declaration
    Color DefaultFixedSingleBorderColor(ITabPanelData panelData, ITabControl tabControl)
    Parameters
    Type Name Description
    ITabPanelData panelData
    ITabControl tabControl
    Returns
    Type
    System.Drawing.Color

    DefaultInactiveTabColor(ITabPanelData, ITabControl)

    Specifies the default inactive tab color.

    Declaration
    Color DefaultInactiveTabColor(ITabPanelData panelData, ITabControl tabControl)
    Parameters
    Type Name Description
    ITabPanelData panelData
    ITabControl tabControl
    Returns
    Type
    System.Drawing.Color

    DefaultInactiveTabFont(ITabPanelData, ITabControl)

    Specifies the default inactive tab font.

    Declaration
    Font DefaultInactiveTabFont(ITabPanelData panelData, ITabControl tabControl)
    Parameters
    Type Name Description
    ITabPanelData panelData
    ITabControl tabControl
    Returns
    Type
    System.Drawing.Font

    DefaultTabForeColor(ITabPanelData, ITabControl)

    Specifies the default tab fore color.

    Declaration
    Color DefaultTabForeColor(ITabPanelData panelData, ITabControl tabControl)
    Parameters
    Type Name Description
    ITabPanelData panelData
    ITabControl tabControl
    Returns
    Type
    System.Drawing.Color

    DefaultTabPanelBackgroundColor(ITabPanelData, ITabControl)

    Specifies the default tab panel background color.

    Declaration
    Color DefaultTabPanelBackgroundColor(ITabPanelData panelData, ITabControl tabControl)
    Parameters
    Type Name Description
    ITabPanelData panelData
    ITabControl tabControl
    Returns
    Type
    System.Drawing.Color

    DefaultTabPanelFont(ITabPanelData, ITabControl)

    Specifies the default tab panel font.

    Declaration
    Font DefaultTabPanelFont(ITabPanelData panelData, ITabControl tabControl)
    Parameters
    Type Name Description
    ITabPanelData panelData
    ITabControl tabControl
    Returns
    Type
    System.Drawing.Font

    GetOverlapSize(SizeF)

    Specifies the amount in X and Y directions, in which a selected tab will overlap the inactive tab.

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

    The user specified tab size, if any. If no size was specified by the user, then this will be SizeF.Empty.

    Returns
    Type
    System.Drawing.SizeF
    Remarks

    If you return for example (6, 3) then the tab will overlap by 3 pixels to its left and right and by 3 pixels on top.

    IsBackgroundSolid()

    Indicates whether the background will be a solid color.

    Declaration
    bool IsBackgroundSolid()
    Returns
    Type Description
    System.Boolean

    True if solid; false otherwise.

    OnPaintPanelBackground(ITabControl, Graphics, Color, Rectangle)

    Draws the tab panel's background.

    Declaration
    void OnPaintPanelBackground(ITabControl tabControl, Graphics g, Color bgColor, Rectangle bounds)
    Parameters
    Type Name Description
    ITabControl tabControl
    System.Drawing.Graphics g
    System.Drawing.Color bgColor
    System.Drawing.Rectangle bounds
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved