WinForms

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

    Show / Hide Table of Contents

    Class TabRendererVS2008

    The Tab Renderer that implements the VS2008 look and feel.

    Inheritance
    System.Object
    TabRendererBase
    TabRenderer3D
    OneNoteStyleRenderer
    TabRendererVS2008
    Implements
    ITabRenderer
    System.IDisposable
    Inherited Members
    OneNoteStyleRenderer.GetOverlapSize(SizeF)
    OneNoteStyleRenderer.GetBoundsForScrolling()
    OneNoteStyleRenderer.CorrectPreferredSize(SizeF)
    OneNoteStyleRenderer.GetCloseButtonBounds(DrawTabEventArgs)
    OneNoteStyleRenderer.HitTest(PointF)
    OneNoteStyleRenderer.CorrectInteriorBounds(RectangleF, RectangleF)
    OneNoteStyleRenderer.LabelEditOffsetY
    OneNoteStyleRenderer.NeedRotateTextWhenVertical
    OneNoteStyleRenderer.ShouldDrawHighLightUpper
    OneNoteStyleRenderer.CorrectCloseButtonPosition
    TabRenderer3D.OVERLAPX
    TabRenderer3D.OVERLAPY
    TabRenderer3D.AdjustBoundsAndGraphicsForAlignment(Graphics, RectangleF, TabAlignment)
    TabRenderer3D.GetPolygonFromBounds(RectangleF)
    TabRenderer3D.GetShadePolygonFromBounds(RectangleF)
    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.CorrectInteriorBounds(RectangleF)
    TabRendererBase.GetItemPreferredSize(Graphics)
    TabRendererBase.GetTabFont(Boolean)
    TabRendererBase.GetTextPosition(Graphics, String, Font, RectangleF, StringFormat)
    TabRendererBase.DrawTextAndImage(Graphics, RectangleF, DrawTabEventArgs)
    TabRendererBase.DrawText(Graphics, RectangleF, String, StringFormat, DrawTabEventArgs)
    TabRendererBase.OnPaint(Graphics, Rectangle)
    TabRendererBase.IsSelectedState(DrawItemState)
    TabRendererBase.IsHotLightState(DrawItemState)
    TabRendererBase.ApplyTransform(Graphics)
    TabRendererBase.GetRedrawBounds()
    TabRendererBase.GetActiveForeColor()
    TabRendererBase.Dispose()
    TabRendererBase.Dispose(Boolean)
    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.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 TabRendererVS2008 : OneNoteStyleRenderer, ITabRenderer, IDisposable

    Constructors

    TabRendererVS2008(ITabControl, ITabPanelRenderer)

    Initializes a new instance of the TabRendererVS2008 class.

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

    The tab control parent.

    ITabPanelRenderer panelRenderer

    The ITabPanelRenderer parent.

    Fields

    DEF_SELECTED_BORDER_COLOR

    Selected item border color.

    Declaration
    protected static readonly Color DEF_SELECTED_BORDER_COLOR
    Field Value
    Type Description
    System.Drawing.Color

    DEF_SELECTION_LINE_WIDTH

    Selected item line width.

    Declaration
    protected const int DEF_SELECTION_LINE_WIDTH = 2
    Field Value
    Type Description
    System.Int32

    Properties

    BorderColor

    Declaration
    protected override Color BorderColor { get; }
    Property Value
    Type Description
    System.Drawing.Color
    Overrides
    OneNoteStyleRenderer.BorderColor

    CloseButtonPadding

    Gets space in pixels between tab's interior and close button.

    Declaration
    public override int CloseButtonPadding { get; }
    Property Value
    Type Description
    System.Int32
    Overrides
    OneNoteStyleRenderer.CloseButtonPadding

    TabBorderColor

    Indicates the border color of the tabs.

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

    TabPanelPropertyExtender

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

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

    TabStyleName

    Gets the unique name of this tab renderer.

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

    Methods

    CorrectBounds(RectangleF)

    Declaration
    protected override RectangleF CorrectBounds(RectangleF bounds)
    Parameters
    Type Name Description
    System.Drawing.RectangleF bounds
    Returns
    Type Description
    System.Drawing.RectangleF
    Overrides
    TabRendererBase.CorrectBounds(RectangleF)

    DrawBackground(DrawTabEventArgs)

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

    DrawBorders(DrawTabEventArgs)

    Declaration
    protected override void DrawBorders(DrawTabEventArgs drawItemInfo)
    Parameters
    Type Name Description
    DrawTabEventArgs drawItemInfo
    Overrides
    OneNoteStyleRenderer.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
    TabRendererBase.DrawFocusRect(Graphics, RectangleF, Color, Color)

    DrawInterior(DrawTabEventArgs)

    Declaration
    protected override void DrawInterior(DrawTabEventArgs drawItemInfo)
    Parameters
    Type Name Description
    DrawTabEventArgs drawItemInfo
    Overrides
    OneNoteStyleRenderer.DrawInterior(DrawTabEventArgs)

    GetBorderPathFromBounds(RectangleF)

    Gets the path for the tab.

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

    Rectangle bounds

    Returns
    Type Description
    System.Drawing.Drawing2D.GraphicsPath

    Returns Graphics Path

    Overrides
    OneNoteStyleRenderer.GetBorderPathFromBounds(RectangleF)

    GetCurrentBounds()

    Returns the current drawing bounds.

    Declaration
    public override RectangleF GetCurrentBounds()
    Returns
    Type Description
    System.Drawing.RectangleF

    The bounds as a rectangle.

    Overrides
    OneNoteStyleRenderer.GetCurrentBounds()
    Remarks

    If this is the selected tab, then this method adds the overlapped size to the bounds returned by Bounds.

    GetForeColor()

    Returns the forecolor with which to draw the tab text.

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

    Fore color.

    Overrides
    TabRendererBase.GetForeColor()

    GetInteriorBounds(RectangleF, Boolean)

    Gets the interior bounds of the tab.

    Declaration
    protected override RectangleF GetInteriorBounds(RectangleF currentBounds, bool selectedTab)
    Parameters
    Type Name Description
    System.Drawing.RectangleF currentBounds

    The bounds of the current tab

    System.Boolean selectedTab

    The Tab which is selected

    Returns
    Type Description
    System.Drawing.RectangleF

    Returns Rectangle

    Overrides
    OneNoteStyleRenderer.GetInteriorBounds(RectangleF, Boolean)

    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

    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, RectangleF)

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

    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