WinForms

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

    Show / Hide Table of Contents

    Class OneNoteStyleRenderer

    This tab renderer implements the Office 2003 OneNoteStyle look-and-feel.

    Inheritance
    System.Object
    TabRendererBase
    TabRenderer3D
    OneNoteStyleRenderer
    TabGroupRendererVS2005Beta
    TabRendererOffice2003
    TabRendererVS2008
    TabRendererWhidbey
    Implements
    ITabRenderer
    System.IDisposable
    Inherited Members
    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.GetPreferredSize(Graphics)
    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.CorrectBounds(RectangleF)
    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 OneNoteStyleRenderer : TabRenderer3D, ITabRenderer, IDisposable

    Constructors

    OneNoteStyleRenderer(ITabControl, ITabPanelRenderer)

    Creates a new instance of the TabRenderer3D class.

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

    The tab control parent.

    ITabPanelRenderer panelRenderer

    The ITabPanelRenderer parent.

    Properties

    BorderColor

    Declaration
    protected virtual Color BorderColor { get; }
    Property Value
    Type Description
    System.Drawing.Color

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

    CorrectCloseButtonPosition

    Declaration
    protected override Point CorrectCloseButtonPosition { get; }
    Property Value
    Type Description
    System.Drawing.Point
    Overrides
    TabRenderer3D.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
    TabRenderer3D.LabelEditOffsetY

    NeedRotateTextWhenVertical

    Declaration
    protected bool NeedRotateTextWhenVertical { get; }
    Property Value
    Type Description
    System.Boolean

    ShouldDrawHighLightUpper

    Declaration
    protected virtual bool ShouldDrawHighLightUpper { get; }
    Property Value
    Type Description
    System.Boolean

    TabBorderColor

    Indicates the border color of the tabs.

    Declaration
    public override Color TabBorderColor { get; }
    Property Value
    Type Description
    System.Drawing.Color
    Overrides
    TabRendererBase.TabBorderColor

    TabPanelPropertyExtender

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

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

    TabStyleName

    Returns the unique name of this tab renderer.

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

    Methods

    CorrectInteriorBounds(RectangleF, RectangleF)

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

    CorrectPreferredSize(SizeF)

    Declaration
    protected override SizeF CorrectPreferredSize(SizeF preferredSize)
    Parameters
    Type Name Description
    System.Drawing.SizeF preferredSize
    Returns
    Type Description
    System.Drawing.SizeF
    Overrides
    TabRendererBase.CorrectPreferredSize(SizeF)

    DrawBackground(DrawTabEventArgs)

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

    DrawBorders(DrawTabEventArgs)

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

    DrawInterior(DrawTabEventArgs)

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

    GetBorderPathFromBounds(RectangleF)

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

    GetBoundsForScrolling()

    Returns the current drawing bounds. Overrides in OneNoteStyleRenderer.

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

    The bounds as a rectangle.

    Overrides
    TabRendererBase.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
    TabRendererBase.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
    TabRendererBase.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
    Overrides
    TabRendererBase.GetInteriorBounds(RectangleF, Boolean)

    GetOverlapSize(SizeF)

    Returns the overlapped size, if any, of the tabs.

    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
    TabRenderer3D.GetOverlapSize(SizeF)

    HitTest(PointF)

    Indicates whether the specified position is within the current bounds.

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

    The mouse position to test.

    Returns
    Type Description
    System.Boolean

    True if hit; false otherwise.

    Overrides
    TabRendererBase.HitTest(PointF)

    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