WinForms

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

    Show / Hide Table of Contents

    Class TabGroupRendererVS2005Beta

    TabGroupRendererVS2005 paints tabs in group mode Visual studio 2005 Beta style.

    Inheritance
    System.Object
    TabRendererBase
    TabRenderer3D
    OneNoteStyleRenderer
    TabGroupRendererVS2005Beta
    Implements
    ITabRenderer
    System.IDisposable
    ITabGroupRenderer
    Inherited Members
    OneNoteStyleRenderer.RegisterTabType()
    OneNoteStyleRenderer.GetBoundsForScrolling()
    OneNoteStyleRenderer.CorrectPreferredSize(SizeF)
    OneNoteStyleRenderer.GetCloseButtonBounds(DrawTabEventArgs)
    OneNoteStyleRenderer.CorrectInteriorBounds(RectangleF, RectangleF)
    OneNoteStyleRenderer.LabelEditOffsetY
    OneNoteStyleRenderer.NeedRotateTextWhenVertical
    OneNoteStyleRenderer.ShouldDrawHighLightUpper
    OneNoteStyleRenderer.CloseButtonPadding
    OneNoteStyleRenderer.CorrectCloseButtonPosition
    OneNoteStyleRenderer.TabBorderColor
    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.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.Visible
    TabRendererBase.HotTrack
    TabRendererBase.DrawItemCallback
    TabRendererBase.TabControl
    TabRendererBase.ShowCloseButton
    TabRendererBase.CloseButtonBackColor
    TabRendererBase.ShowCloseButtonBackColor
    TabRendererBase.CloseButtonBounds
    TabRendererBase.CloseButtonClicked
    TabRendererBase.CloseButtonSize
    TabRendererBase.HitCloseButton
    TabRendererBase.ShouldDrawRotatedWhenVertical
    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.Renderers
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class TabGroupRendererVS2005Beta : OneNoteStyleRenderer, ITabRenderer, IDisposable, ITabGroupRenderer

    Constructors

    TabGroupRendererVS2005Beta(ITabControl, ITabPanelRenderer)

    Creates an instance of the TabGroupRendererVS2005Beta.

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

    The ITabControl instance.

    ITabPanelRenderer panelRenderer

    The parent ITabPanelRenderer instance.

    Fields

    boundsChanged

    Defines if bounds changed.

    Declaration
    protected bool boundsChanged
    Field Value
    Type Description
    System.Boolean

    itemBounds

    Stores bounds of tab items.

    Declaration
    protected ArrayList itemBounds
    Field Value
    Type Description
    System.Collections.ArrayList

    m_hitBounds

    Collection to store hit rectangles of items.

    Declaration
    protected ArrayList m_hitBounds
    Field Value
    Type Description
    System.Collections.ArrayList

    m_innerPath

    Inner shadowed border path.

    Declaration
    protected GraphicsPath m_innerPath
    Field Value
    Type Description
    System.Drawing.Drawing2D.GraphicsPath

    m_tabGroupBounds

    Stores tab group bounds.

    Declaration
    protected ArrayList m_tabGroupBounds
    Field Value
    Type Description
    System.Collections.ArrayList

    m_tabProperty2010Extender

    Declaration
    protected static TabUIVS2010Properties m_tabProperty2010Extender
    Field Value
    Type Description
    TabUIVS2010Properties

    m_tabProperty2012Extender

    Declaration
    protected static TabUIVS2012Properties m_tabProperty2012Extender
    Field Value
    Type Description
    TabUIVS2012Properties

    m_tabPropertyExtender

    Properties for panel painting for current style.

    Declaration
    protected static TabUIVS2005Properties m_tabPropertyExtender
    Field Value
    Type Description
    TabUIVS2005Properties

    Properties

    BorderColor

    Border Color.

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

    Bounds

    Gets/sets bounds.

    Declaration
    public override RectangleF Bounds { get; set; }
    Property Value
    Type Description
    System.Drawing.RectangleF
    Overrides
    TabRendererBase.Bounds

    TabData

    Gets/sets tab (group) data.

    Declaration
    public override ITabData TabData { get; set; }
    Property Value
    Type Description
    ITabData
    Overrides
    TabRendererBase.TabData

    TabPanel2010PropertyExtender

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

    Declaration
    public static TabUIVS2010Properties TabPanel2010PropertyExtender { get; }
    Property Value
    Type Description
    TabUIVS2010Properties

    TabPanel2012PropertyExtender

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

    Declaration
    public static TabUIVS2012Properties TabPanel2012PropertyExtender { get; }
    Property Value
    Type Description
    TabUIVS2012Properties

    TabPanelPropertyExtender

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

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

    TabStyleName

    Gets tab style name.

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

    Methods

    CalculateHitBound(RectangleF)

    Calculates hit bounds for current item.

    Declaration
    protected virtual void CalculateHitBound(RectangleF bounds)
    Parameters
    Type Name Description
    System.Drawing.RectangleF bounds

    Bounds of item.

    CorrectBounds(RectangleF)

    Corrects

    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)

    Override.

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

    See the DrawTabEventArgs

    Overrides
    OneNoteStyleRenderer.DrawBackground(DrawTabEventArgs)

    DrawBorders(DrawTabEventArgs)

    Override.

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

    See the DrawTabEventArgs

    Overrides
    OneNoteStyleRenderer.DrawBorders(DrawTabEventArgs)

    DrawInterior(DrawTabEventArgs)

    Draws interior.

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

    Arguments for draw interior action.

    Overrides
    OneNoteStyleRenderer.DrawInterior(DrawTabEventArgs)

    GetBorderPathFromBounds(RectangleF)

    Gets outer and inner border path from bounds in VS2005 style.

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

    Bounds in which to draw border.

    Returns
    Type Description
    System.Drawing.Drawing2D.GraphicsPath

    Border path.

    Overrides
    OneNoteStyleRenderer.GetBorderPathFromBounds(RectangleF)

    GetCurrentBounds()

    Gets current bounds.

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

    Current bounds.

    Overrides
    OneNoteStyleRenderer.GetCurrentBounds()

    GetGroupItemBounds(Int32)

    Gets group item bounds.

    Declaration
    public RectangleF GetGroupItemBounds(int i)
    Parameters
    Type Name Description
    System.Int32 i

    Number of item.

    Returns
    Type Description
    System.Drawing.RectangleF

    Bounds.

    GetInteriorBounds(RectangleF, Boolean)

    Gets interior(separator of tabs)bounds.

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

    Current bounds.

    System.Boolean selectedTab

    If tab is selected.

    Returns
    Type Description
    System.Drawing.RectangleF

    Interior bounds.

    Overrides
    OneNoteStyleRenderer.GetInteriorBounds(RectangleF, Boolean)

    GetOverlapSize(SizeF)

    Calculates overlap size.

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

    tab size.

    Returns
    Type Description
    System.Drawing.SizeF

    Size.

    Overrides
    OneNoteStyleRenderer.GetOverlapSize(SizeF)

    GetPreferredSize(Graphics)

    Gets preferred size for tab item.

    Declaration
    public override SizeF GetPreferredSize(Graphics g)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    Graphics for string measuring.

    Returns
    Type Description
    System.Drawing.SizeF

    preferred size.

    Overrides
    TabRendererBase.GetPreferredSize(Graphics)

    HitTest(PointF)

    Performs hit test.

    Declaration
    public override bool HitTest(PointF mousePosition)
    Parameters
    Type Name Description
    System.Drawing.PointF mousePosition

    Mouse position.

    Returns
    Type Description
    System.Boolean

    If any tab item is hit.

    Overrides
    OneNoteStyleRenderer.HitTest(PointF)

    PaintBackground(DrawTabEventArgs)

    Draws background.

    Declaration
    protected virtual void PaintBackground(DrawTabEventArgs drawItemInfo)
    Parameters
    Type Name Description
    DrawTabEventArgs drawItemInfo

    Painting arguments.

    PaintBorders(DrawTabEventArgs)

    Draws borders.

    Declaration
    protected virtual void PaintBorders(DrawTabEventArgs drawItemInfo)
    Parameters
    Type Name Description
    DrawTabEventArgs drawItemInfo

    Draw bounds action arguments.

    SetItemBounds(Graphics, RectangleF)

    Sets item bounds.

    Declaration
    protected virtual void SetItemBounds(Graphics g, RectangleF tabBounds)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    Graphics to use.

    System.Drawing.RectangleF tabBounds

    Bounds of tab items.

    Implements

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