WinForms

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

    Show / Hide Table of Contents

    Class TabRendererOffice2010

    The TabRenderer that implements look and feel of the Office2010 style.

    Inheritance
    System.Object
    TabRendererBase
    TabRenderer2D
    TabRendererOffice2010
    Implements
    ITabRenderer
    System.IDisposable
    Inherited Members
    TabRenderer2D.buttonBorderColors
    TabRenderer2D.OVERLAPX
    TabRenderer2D.BorderColors(TabRenderer2D.BorderSide, TabAlignment)
    TabRenderer2D.DrawInterior(DrawTabEventArgs)
    TabRenderer2D.LabelEditOffsetY
    TabRenderer2D.CloseButtonPadding
    TabRenderer2D.CorrectCloseButtonPosition
    TabRendererBase.panelRenderer
    TabRendererBase.ImageTextPadding
    TabRendererBase.SaveGraphicsState(Graphics, RectangleF)
    TabRendererBase.RestoreGraphicsState(Graphics)
    TabRendererBase.NeedMirroredBackground()
    TabRendererBase.TabPropertyChanged()
    TabRendererBase.IsTextShrunk()
    TabRendererBase.CloseButtonHitTest(Point)
    TabRendererBase.DrawCloseButton(Graphics, RectangleF)
    TabRendererBase.DrawCloseButton(Graphics, RectangleF, DrawTabEventArgs)
    TabRendererBase.GetCloseButtonBounds(DrawTabEventArgs)
    TabRendererBase.CorrectInteriorBounds(RectangleF)
    TabRendererBase.GetItemPreferredSize(Graphics)
    TabRendererBase.GetTabFont(Boolean)
    TabRendererBase.CorrectPreferredSize(SizeF)
    TabRendererBase.GetTextPosition(Graphics, String, Font, RectangleF, StringFormat)
    TabRendererBase.DrawTextAndImage(Graphics, RectangleF, DrawTabEventArgs)
    TabRendererBase.DrawText(Graphics, RectangleF, String, StringFormat, DrawTabEventArgs)
    TabRendererBase.CorrectBounds(RectangleF)
    TabRendererBase.OnPaint(Graphics, Rectangle)
    TabRendererBase.GetInteriorBounds(RectangleF, Boolean)
    TabRendererBase.IsSelectedState(DrawItemState)
    TabRendererBase.IsHotLightState(DrawItemState)
    TabRendererBase.ApplyTransform(Graphics)
    TabRendererBase.GetRedrawBounds()
    TabRendererBase.GetCurrentBounds()
    TabRendererBase.GetBoundsForScrolling()
    TabRendererBase.HitTest(PointF)
    TabRendererBase.Dispose()
    TabRendererBase.ForceDrawImage
    TabRendererBase.TextBounds
    TabRendererBase.ShouldDrawText
    TabRendererBase.TabData
    TabRendererBase.Visible
    TabRendererBase.HotTrack
    TabRendererBase.DrawItemCallback
    TabRendererBase.TabControl
    TabRendererBase.ShowCloseButton
    TabRendererBase.CloseButtonBackColor
    TabRendererBase.ShowCloseButtonBackColor
    TabRendererBase.CloseButtonBounds
    TabRendererBase.CloseButtonClicked
    TabRendererBase.CloseButtonSize
    TabRendererBase.HitCloseButton
    TabRendererBase.ShouldDrawRotatedWhenVertical
    TabRendererBase.NeedRotateTextWhenVertical
    TabRendererBase.Bounds
    TabRendererBase.ImageRect
    TabRendererBase.TabAlignment
    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 TabRendererOffice2010 : TabRenderer2D, ITabRenderer, IDisposable

    Constructors

    TabRendererOffice2010(ITabControl, ITabPanelRenderer)

    Initializes a new instance of the TabRendererOffice2010 class.

    Declaration
    public TabRendererOffice2010(ITabControl parent, ITabPanelRenderer panelRenderer)
    Parameters
    Type Name Description
    ITabControl parent

    The tab control parent.

    ITabPanelRenderer panelRenderer

    The ITabPanelRenderer parent.

    Properties

    TabBorderColor

    Gets the tab border color.

    Declaration
    public override Color TabBorderColor { get; }
    Property Value
    Type Description
    System.Drawing.Color
    Overrides
    TabRendererBase.TabBorderColor

    TabPanelPropertyExtender

    Gets the ITabDefaultProperties instance that provides default properties for this renderer.

    Declaration
    public static StyleRendererPropertyOffice2010 TabPanelPropertyExtender { get; }
    Property Value
    Type Description
    StyleRendererPropertyOffice2010

    TabStyleName

    Gets the unique name of this tab renderer.

    Declaration
    public static string TabStyleName { get; }
    Property Value
    Type Description
    System.String

    Theme

    Gets or sets information about Office2010 color theme.

    Declaration
    public Office2010Theme Theme { get; set; }
    Property Value
    Type Description
    Office2010Theme

    ThemeColors

    Gets information about Office2010 theme colors.

    Declaration
    public Office2010Colors ThemeColors { get; }
    Property Value
    Type Description
    Office2010Colors

    Methods

    Dispose(Boolean)

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

    DrawBackground(DrawTabEventArgs)

    Declaration
    protected override void DrawBackground(DrawTabEventArgs drawItemInfo)
    Parameters
    Type Name Description
    DrawTabEventArgs drawItemInfo
    Overrides
    TabRenderer2D.DrawBackground(DrawTabEventArgs)

    DrawBorders(DrawTabEventArgs)

    Declaration
    protected override void DrawBorders(DrawTabEventArgs drawItemInfo)
    Parameters
    Type Name Description
    DrawTabEventArgs drawItemInfo
    Overrides
    TabRenderer2D.DrawBorders(DrawTabEventArgs)

    DrawFocusRect(Graphics, RectangleF, Color, Color)

    Declaration
    protected override void DrawFocusRect(Graphics g, RectangleF focusRect, Color fore, Color back)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.RectangleF focusRect
    System.Drawing.Color fore
    System.Drawing.Color back
    Overrides
    TabRenderer2D.DrawFocusRect(Graphics, RectangleF, Color, Color)

    GetActiveForeColor()

    Declaration
    protected override Color GetActiveForeColor()
    Returns
    Type Description
    System.Drawing.Color
    Overrides
    TabRendererBase.GetActiveForeColor()

    GetBorderPathFromBounds(RectangleF)

    Declaration
    protected virtual GraphicsPath GetBorderPathFromBounds(RectangleF bounds)
    Parameters
    Type Name Description
    System.Drawing.RectangleF bounds
    Returns
    Type Description
    System.Drawing.Drawing2D.GraphicsPath

    GetForeColor()

    Declaration
    protected override Color GetForeColor()
    Returns
    Type Description
    System.Drawing.Color
    Overrides
    TabRendererBase.GetForeColor()

    GetLowerTabBorderPath()

    Gets the path for the line beneath the tabs.

    Declaration
    protected virtual GraphicsPath GetLowerTabBorderPath()
    Returns
    Type Description
    System.Drawing.Drawing2D.GraphicsPath

    Returns Graphics Path

    GetOverlapSize(SizeF)

    Returns the overlap size. Overridden. See GetOverlapSize(SizeF).

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

    The overlap size.

    Overrides
    TabRenderer2D.GetOverlapSize(SizeF)
    Remarks

    This implementation returns (0, 0).

    GetPreferredSize(Graphics)

    Returns the preferred size for the tabs.

    Declaration
    public override SizeF GetPreferredSize(Graphics g)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    The Graphics object.

    Returns
    Type Description
    System.Drawing.SizeF

    The preferred size.

    Overrides
    TabRendererBase.GetPreferredSize(Graphics)

    GetTabBorderPath(RectangleF)

    Gets the path for the tab.

    Declaration
    protected virtual GraphicsPath GetTabBorderPath(RectangleF bounds)
    Parameters
    Type Name Description
    System.Drawing.RectangleF bounds

    Rectangle bounds

    Returns
    Type Description
    System.Drawing.Drawing2D.GraphicsPath

    Returns Graphics path

    GetTopEllipseRoundedPath(RectangleF)

    Gets specified rounded path for the rectangle for drawing top ellipse when office2010ColorScheme is black and tabPage is highlighted.

    Declaration
    protected GraphicsPath GetTopEllipseRoundedPath(RectangleF bounds)
    Parameters
    Type Name Description
    System.Drawing.RectangleF bounds

    Rectangle bounds

    Returns
    Type Description
    System.Drawing.Drawing2D.GraphicsPath

    Returns Graphics Path

    RegisterTabType()

    Registers the type of the tab.

    Declaration
    public static void RegisterTabType()

    Implements

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