WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class OneNoteStyleFlatTabPanelProperty

    Show / Hide Table of Contents

    Class OneNoteStyleFlatTabPanelProperty

    Represents the default tab properties for the OneNoteStyleFlatTabsRenderer tab style.

    Inheritance
    System.Object
    TabUIDefaultProperties
    OneNoteStyleFlatTabPanelProperty
    Implements
    ITabDefaultProperties
    Inherited Members
    TabUIDefaultProperties.DefaultTabForeColor(ITabPanelData, ITabControl)
    TabUIDefaultProperties.DefaultTabPanelFont(ITabPanelData, ITabControl)
    TabUIDefaultProperties.DefaultInactiveTabFont(ITabPanelData, ITabControl)
    TabUIDefaultProperties.DefaultActiveTabFont(ITabPanelData, ITabControl)
    TabUIDefaultProperties.DrawLeftToRight
    TabUIDefaultProperties.DrawEllipsis
    TabUIDefaultProperties.ShowInDesignMode
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class OneNoteStyleFlatTabPanelProperty : TabUIDefaultProperties, ITabDefaultProperties

    Constructors

    OneNoteStyleFlatTabPanelProperty()

    Declaration
    public OneNoteStyleFlatTabPanelProperty()

    Methods

    DefaultActiveTabColor(ITabPanelData, ITabControl)

    Returns the default Active Tab Color.

    Declaration
    public override 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.

    Overrides
    TabUIDefaultProperties.DefaultActiveTabColor(ITabPanelData, ITabControl)
    Remarks

    This implementation returns the tab control's BackColor.

    DefaultFixedSingleBorderColor(ITabPanelData, ITabControl)

    Returns the default single border color.

    Declaration
    public override 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.

    Overrides
    TabUIDefaultProperties.DefaultFixedSingleBorderColor(ITabPanelData, ITabControl)
    Remarks

    This implementation returns a system color.

    DefaultInactiveTabColor(ITabPanelData, ITabControl)

    Returns the default Inactive TabColor.

    Declaration
    public override 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.

    Overrides
    TabUIDefaultProperties.DefaultInactiveTabColor(ITabPanelData, ITabControl)
    Remarks

    This implementation returns the tab control's BackColor.

    DefaultTabPanelBackgroundColor(ITabPanelData, ITabControl)

    Returns the default backcolor for the panel.

    Declaration
    public override 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.

    Overrides
    TabUIDefaultProperties.DefaultTabPanelBackgroundColor(ITabPanelData, ITabControl)
    Remarks

    This implementation returns the tab control's BackColor.

    GetOverlapSize(SizeF)

    The selected tab overlaps the inactive tabs by this much.

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

    Indicates the size of the tab.

    Returns
    Type Description
    System.Drawing.SizeF

    The overlap size.

    Overrides
    TabUIDefaultProperties.GetOverlapSize(SizeF)

    IsBackgroundSolid()

    Indicates whether the background color is solid.

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

    True if solid; false otherwise.

    Overrides
    TabUIDefaultProperties.IsBackgroundSolid()

    OnPaintPanelBackground(ITabControl, Graphics, Color, Rectangle)

    Draws the background of the tab panel.

    Declaration
    public override 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.

    Overrides
    TabUIDefaultProperties.OnPaintPanelBackground(ITabControl, Graphics, Color, Rectangle)

    Implements

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