WinForms

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

    Show / Hide Table of Contents

    Class TabRenderer3D

    The tab renderer that implements the 3D tabs look-and-feel.

    Inheritance
    System.Object
    TabRendererBase
    TabRenderer3D
    DockTabThemedRenderer
    OneNoteStyleFlatTabsRenderer
    OneNoteStyleRenderer
    Implements
    ITabRenderer
    System.IDisposable
    Inherited Members
    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.GetPreferredSize(Graphics)
    TabRendererBase.GetItemPreferredSize(Graphics)
    TabRendererBase.GetTabFont(Boolean)
    TabRendererBase.CorrectPreferredSize(SizeF)
    TabRendererBase.GetTextPosition(Graphics, String, Font, RectangleF, StringFormat)
    TabRendererBase.DrawFocusRect(Graphics, RectangleF, Color, Color)
    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.GetForeColor()
    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.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 TabRenderer3D : TabRendererBase, ITabRenderer, IDisposable

    Constructors

    TabRenderer3D(ITabControl, ITabPanelRenderer)

    Creates a new instance of the TabRenderer3D class.

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

    The tab control parent.

    ITabPanelRenderer panelRenderer

    The ITabPanelRenderer parent.

    Fields

    OVERLAPX

    The default horizontal overlap.

    Declaration
    public static readonly int OVERLAPX
    Field Value
    Type Description
    System.Int32

    OVERLAPY

    The default vertical overlap.

    Declaration
    public static readonly int OVERLAPY
    Field Value
    Type Description
    System.Int32

    Properties

    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
    TabRendererBase.CloseButtonPadding

    CorrectCloseButtonPosition

    Declaration
    protected override Point CorrectCloseButtonPosition { get; }
    Property Value
    Type Description
    System.Drawing.Point
    Overrides
    TabRendererBase.CorrectCloseButtonPosition

    LabelEditOffsetY

    Returns y-coordinate offset for Label Edit control, in Tab's captions editable case.

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

    TabPanelPropertyExtender

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

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

    TabStyleName

    Returns the unique name of this tab renderer.

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

    Methods

    AdjustBoundsAndGraphicsForAlignment(Graphics, RectangleF, TabAlignment)

    Adjusts the bounds and graphics based on alignment.

    Declaration
    protected RectangleF AdjustBoundsAndGraphicsForAlignment(Graphics g, RectangleF oldBounds, TabAlignment align)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.RectangleF oldBounds
    System.Windows.Forms.TabAlignment align
    Returns
    Type Description
    System.Drawing.RectangleF

    DrawBackground(DrawTabEventArgs)

    Overridden. See DrawBackground(DrawTabEventArgs).

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

    DrawBorders(DrawTabEventArgs)

    Overridden. See DrawBorders(DrawTabEventArgs).

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

    DrawInterior(DrawTabEventArgs)

    Overridden. See DrawInterior(DrawTabEventArgs).

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

    GetOverlapSize(SizeF)

    Returns the overlapped size, if any, of the tabs. 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
    TabRendererBase.GetOverlapSize(SizeF)

    GetPolygonFromBounds(RectangleF)

    Returns the polygonal border of the tab from the bounds.

    Declaration
    public PointF[] GetPolygonFromBounds(RectangleF bounds)
    Parameters
    Type Name Description
    System.Drawing.RectangleF bounds

    The tab's bounds.

    Returns
    Type Description
    System.Drawing.PointF[]

    The polygonal border.

    GetShadePolygonFromBounds(RectangleF)

    Returns the polygonal shade border of the tab from the bounds.

    Declaration
    public PointF[] GetShadePolygonFromBounds(RectangleF bounds)
    Parameters
    Type Name Description
    System.Drawing.RectangleF bounds

    The tab's bounds.

    Returns
    Type Description
    System.Drawing.PointF[]

    The polygonal border.

    RegisterTabType()

    Registers custom tab styles with the framework.

    Declaration
    public static void RegisterTabType()

    Implements

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