Class OneNoteStyleRenderer
This tab renderer implements the Office 2003 OneNoteStyle look-and-feel.
Inheritance
System.Object
OneNoteStyleRenderer
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Syncfusion.Tools.Windows.dll
public class OneNoteStyleRenderer : TabRenderer3D, ITabRenderer, IDisposable
Constructors
Creates a new instance of the TabRenderer3D class.
Declaration
public OneNoteStyleRenderer(ITabControl parent, ITabPanelRenderer panelRenderer)
Parameters
Properties
Declaration
protected virtual Color BorderColor { get; }
Property Value
Type |
System.Drawing.Color |
Gets space in pixels between tab's interior and close button.
Declaration
public override int CloseButtonPadding { get; }
Property Value
Overrides
Declaration
protected override Point CorrectCloseButtonPosition { get; }
Property Value
Type |
System.Drawing.Point |
Overrides
Returns y-coordinate offset for Label Edit control, in Tab's captions editable case.
Declaration
public override int LabelEditOffsetY { get; }
Property Value
Overrides
NeedRotateTextWhenVertical
Declaration
protected bool NeedRotateTextWhenVertical { get; }
Property Value
Declaration
protected virtual bool ShouldDrawHighLightUpper { get; }
Property Value
Indicates the border color of the tabs.
Declaration
public override Color TabBorderColor { get; }
Property Value
Type |
System.Drawing.Color |
Overrides
Declaration
public static OneNoteStyleRendererProperty TabPanelPropertyExtender { get; }
Property Value
Returns the unique name of this tab renderer.
Declaration
public static string TabStyleName { get; }
Property Value
Methods
Declaration
protected virtual RectangleF CorrectInteriorBounds(RectangleF bounds, RectangleF interriorBounds)
Parameters
Type |
Name |
Description |
System.Drawing.RectangleF |
bounds |
|
System.Drawing.RectangleF |
interriorBounds |
|
Returns
Type |
System.Drawing.RectangleF |
Declaration
protected override SizeF CorrectPreferredSize(SizeF preferredSize)
Parameters
Type |
Name |
Description |
System.Drawing.SizeF |
preferredSize |
|
Returns
Type |
System.Drawing.SizeF |
Overrides
Declaration
protected override void DrawBackground(DrawTabEventArgs drawItemInfo)
Parameters
Overrides
Declaration
protected override void DrawBorders(DrawTabEventArgs drawItemInfo)
Parameters
Overrides
Declaration
protected override void DrawInterior(DrawTabEventArgs drawItemInfo)
Parameters
Overrides
Declaration
protected virtual GraphicsPath GetBorderPathFromBounds(RectangleF bounds)
Parameters
Type |
Name |
Description |
System.Drawing.RectangleF |
bounds |
|
Returns
Type |
System.Drawing.Drawing2D.GraphicsPath |
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
Declaration
protected override RectangleF GetCloseButtonBounds(DrawTabEventArgs drawItemInfo)
Parameters
Returns
Type |
System.Drawing.RectangleF |
Overrides
Returns the current drawing bounds.
Declaration
public override RectangleF GetCurrentBounds()
Returns
Type |
Description |
System.Drawing.RectangleF |
The bounds as a rectangle.
|
Overrides
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 |
System.Drawing.RectangleF |
Overrides
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
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
Registers custom tab styles with the framework.
Declaration
public static void RegisterTabType()
Implements
System.IDisposable