WinForms

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

    Show / Hide Table of Contents

    Class TabRendererDockingWhidbeyBeta

    Represents the default tab properties for the tab style.

    Inheritance
    System.Object
    TabRendererBase
    TabRenderer3D
    OneNoteStyleRenderer
    TabRendererWhidbey
    TabRendererDockingWhidbeyBeta
    Implements
    ITabRenderer
    System.IDisposable
    Inherited Members
    TabRendererWhidbey.DEF_SELECTION_LINE_WIDTH
    TabRendererWhidbey.DEF_SELECTED_BORDER_COLOR
    TabRendererWhidbey.CorrectBounds(RectangleF)
    TabRendererWhidbey.GetPreferredSize(Graphics)
    TabRendererWhidbey.DrawBorders(DrawTabEventArgs)
    TabRendererWhidbey.DrawBackground(DrawTabEventArgs)
    TabRendererWhidbey.TabBorderColor
    TabRendererWhidbey.BorderColor
    TabRendererWhidbey.ShouldDrawHighLightUpper
    OneNoteStyleRenderer.CorrectPreferredSize(SizeF)
    OneNoteStyleRenderer.HitTest(PointF)
    OneNoteStyleRenderer.LabelEditOffsetY
    OneNoteStyleRenderer.NeedRotateTextWhenVertical
    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.GetTabFont(Boolean)
    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.OnPaint(Graphics, Rectangle)
    TabRendererBase.IsSelectedState(DrawItemState)
    TabRendererBase.IsHotLightState(DrawItemState)
    TabRendererBase.ApplyTransform(Graphics)
    TabRendererBase.GetRedrawBounds()
    TabRendererBase.GetForeColor()
    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 TabRendererDockingWhidbeyBeta : TabRendererWhidbey, ITabRenderer, IDisposable

    Constructors

    TabRendererDockingWhidbeyBeta(ITabControl, ITabPanelRenderer)

    Initializes a new instance of the TabRendererDockingWhidbeyBeta class.

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

    The tab control parent.

    ITabPanelRenderer panelRenderer

    The ITabPanelRenderer parent.

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

    CorrectCloseButtonPosition

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

    TabPanelPropertyExtender

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

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

    TabStyleName

    Gets name of this tab renderer.

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

    Methods

    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)

    CorrectInteriorBounds(RectangleF, RectangleF)

    Declaration
    protected override RectangleF CorrectInteriorBounds(RectangleF bounds, RectangleF interriorBounds)
    Parameters
    Type Name Description
    System.Drawing.RectangleF bounds
    System.Drawing.RectangleF interriorBounds
    Returns
    Type Description
    System.Drawing.RectangleF
    Overrides
    OneNoteStyleRenderer.CorrectInteriorBounds(RectangleF, RectangleF)

    DrawInterior(DrawTabEventArgs)

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

    GetBorderPathFromBounds(RectangleF)

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

    GetBoundsForScrolling()

    Returns the current drawing bounds.

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

    The bounds as a rectangle.

    Overrides
    OneNoteStyleRenderer.GetBoundsForScrolling()
    Remarks

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

    GetCloseButtonBounds(DrawTabEventArgs)

    Declaration
    protected override RectangleF GetCloseButtonBounds(DrawTabEventArgs drawItemInfo)
    Parameters
    Type Name Description
    DrawTabEventArgs drawItemInfo
    Returns
    Type Description
    System.Drawing.RectangleF
    Overrides
    OneNoteStyleRenderer.GetCloseButtonBounds(DrawTabEventArgs)

    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.

    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

    Rectangle bounds

    Overrides
    OneNoteStyleRenderer.GetInteriorBounds(RectangleF, Boolean)

    GetItemPreferredSize(Graphics)

    Declaration
    protected override SizeF GetItemPreferredSize(Graphics g)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    Returns
    Type Description
    System.Drawing.SizeF
    Overrides
    TabRendererBase.GetItemPreferredSize(Graphics)

    GetOverlapSize(SizeF)

    Returns the size by which the selected tab overlaps the inactive tabs.

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

    Tab size

    Returns
    Type Description
    System.Drawing.SizeF

    Returns the overlap size

    Overrides
    OneNoteStyleRenderer.GetOverlapSize(SizeF)

    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