WinForms

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

    Show / Hide Table of Contents

    Class TabRendererVS2010

    The Tab Renderer that implements the VS2010 look and feel.

    Inheritance
    System.Object
    TabRendererBase
    TabRenderer2D
    TabRendererVS2010
    Implements
    ITabRenderer
    System.IDisposable
    Inherited Members
    TabRenderer2D.buttonBorderColors
    TabRenderer2D.OVERLAPX
    TabRenderer2D.BorderColors(TabRenderer2D.BorderSide, TabAlignment)
    TabRenderer2D.GetOverlapSize(SizeF)
    TabRenderer2D.LabelEditOffsetY
    TabRenderer2D.CloseButtonPadding
    TabRenderer2D.CorrectCloseButtonPosition
    TabRendererBase.panelRenderer
    TabRendererBase.ImageTextPadding
    TabRendererBase.SaveGraphicsState(Graphics, RectangleF)
    TabRendererBase.RestoreGraphicsState(Graphics)
    TabRendererBase.NeedMirroredBackground()
    TabRendererBase.TabPropertyChanged()
    TabRendererBase.IsTextShrunk()
    TabRendererBase.DrawCloseButton(Graphics, RectangleF)
    TabRendererBase.GetCloseButtonBounds(DrawTabEventArgs)
    TabRendererBase.GetPreferredSize(Graphics)
    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.OnPaint(Graphics, Rectangle)
    TabRendererBase.GetInteriorBounds(RectangleF, Boolean)
    TabRendererBase.IsSelectedState(DrawItemState)
    TabRendererBase.IsHotLightState(DrawItemState)
    TabRendererBase.ApplyTransform(Graphics)
    TabRendererBase.GetRedrawBounds()
    TabRendererBase.GetActiveForeColor()
    TabRendererBase.GetCurrentBounds()
    TabRendererBase.GetBoundsForScrolling()
    TabRendererBase.HitTest(PointF)
    TabRendererBase.Dispose()
    TabRendererBase.Dispose(Boolean)
    TabRendererBase.ForceDrawImage
    TabRendererBase.TextBounds
    TabRendererBase.ShouldDrawText
    TabRendererBase.TabData
    TabRendererBase.Visible
    TabRendererBase.HotTrack
    TabRendererBase.DrawItemCallback
    TabRendererBase.TabControl
    TabRendererBase.TabBorderColor
    TabRendererBase.ShowCloseButton
    TabRendererBase.CloseButtonBackColor
    TabRendererBase.ShowCloseButtonBackColor
    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 TabRendererVS2010 : TabRenderer2D, ITabRenderer, IDisposable

    Constructors

    TabRendererVS2010(ITabControl, ITabPanelRenderer)

    Constructor of the TabRendererVS2010.

    Declaration
    public TabRendererVS2010(ITabControl tabControl, ITabPanelRenderer tabPanelRenderer)
    Parameters
    Type Name Description
    ITabControl tabControl

    The instance of the ITabControl.

    ITabPanelRenderer tabPanelRenderer

    The instance of the ITabPanelRenderer.

    Fields

    DEF_SELECTION_LINE_WIDTH

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

    Properties

    CloseButtonBounds

    Gets the bounds of the close button.

    Declaration
    public Rectangle CloseButtonBounds { get; }
    Property Value
    Type Description
    System.Drawing.Rectangle

    TabPanelPropertyExtender

    Gets the tab panel property extender.

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

    The tab panel property extender.

    TabStyleName

    Gets the name of the tab style.

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

    The name of the tab style.

    Methods

    CloseButtonHitTest(Point)

    Checks, does CloseButton's bounds contain specified point.

    Declaration
    public override bool CloseButtonHitTest(Point pt)
    Parameters
    Type Name Description
    System.Drawing.Point pt

    Point to check.

    Returns
    Type Description
    System.Boolean

    true, if CloseButton's bounds contain specified point, otherwise - false.

    Overrides
    TabRendererBase.CloseButtonHitTest(Point)

    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)

    CorrectInteriorBounds(RectangleF)

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

    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)

    DrawCloseButton(Graphics, RectangleF, DrawTabEventArgs)

    Declaration
    protected override void DrawCloseButton(Graphics g, RectangleF closeButtonBounds, DrawTabEventArgs e)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.RectangleF closeButtonBounds
    DrawTabEventArgs e
    Overrides
    TabRendererBase.DrawCloseButton(Graphics, RectangleF, 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)

    DrawInterior(DrawTabEventArgs)

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

    GetBorderPathFromBounds(RectangleF)

    Gets the path for for the tab and the line beneath the tabs.

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

    Rectangle bounds

    Returns
    Type Description
    System.Drawing.Drawing2D.GraphicsPath

    Returns Graphics Path

    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

    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

    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