WinForms

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

    Show / Hide Table of Contents

    Class TabRendererMetro

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

    Inheritance
    System.Object
    TabRendererBase
    TabRenderer2D
    TabRendererMetro
    Implements
    ITabRenderer
    System.IDisposable
    Inherited Members
    TabRenderer2D.buttonBorderColors
    TabRenderer2D.OVERLAPX
    TabRenderer2D.BorderColors(TabRenderer2D.BorderSide, TabAlignment)
    TabRenderer2D.GetOverlapSize(SizeF)
    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.GetPreferredSize(Graphics)
    TabRendererBase.GetItemPreferredSize(Graphics)
    TabRendererBase.GetTabFont(Boolean)
    TabRendererBase.CorrectPreferredSize(SizeF)
    TabRendererBase.GetTextPosition(Graphics, String, Font, RectangleF, StringFormat)
    TabRendererBase.DrawTextAndImage(Graphics, RectangleF, 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 TabRendererMetro : TabRenderer2D, ITabRenderer, IDisposable

    Constructors

    TabRendererMetro(ITabControl, ITabPanelRenderer)

    Constructor of the TabRendererMetro class.

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

    Properties

    TabPanelPropertyExtender

    Gets the TabPanelPropertyExtender.

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

    TabStyleName

    Gets the unique name of this tab renderer.

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

    Methods

    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)

    DrawText(Graphics, RectangleF, String, StringFormat, DrawTabEventArgs)

    Declaration
    protected override void DrawText(Graphics g, RectangleF rectText, string text, StringFormat format, DrawTabEventArgs e)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.RectangleF rectText
    System.String text
    System.Drawing.StringFormat format
    DrawTabEventArgs e
    Overrides
    TabRendererBase.DrawText(Graphics, RectangleF, String, StringFormat, DrawTabEventArgs)

    GetBorderPathForBottom(RectangleF)

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

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

    Rectangle bounds

    Returns
    Type Description
    System.Drawing.Drawing2D.GraphicsPath

    Returns Graphics Path

    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

    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