Class TabRendererOffice2007
The TabRenderer that implements look and feel of the Office2007 style.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class TabRendererOffice2007 : TabRenderer2D, ITabRenderer, IDisposable
Constructors
TabRendererOffice2007(ITabControl, ITabPanelRenderer)
Initializes a new instance of the TabRendererOffice2007 class.
Declaration
public TabRendererOffice2007(ITabControl parent, ITabPanelRenderer panelRenderer)
Parameters
Type | Name | Description |
---|---|---|
ITabControl | parent | The tab control parent. |
ITabPanelRenderer | panelRenderer | The ITabPanelRenderer parent. |
Properties
TabBorderColor
Gets the tab border color.
Declaration
public override Color TabBorderColor { get; }
Property Value
Type |
---|
System.Drawing.Color |
Overrides
TabPanelPropertyExtender
Gets the ITabDefaultProperties instance that provides default properties for this renderer.
Declaration
public static StyleRendererPropertyOffice2007 TabPanelPropertyExtender { get; }
Property Value
Type |
---|
StyleRendererPropertyOffice2007 |
TabStyleName
Gets the unique name of this tab renderer.
Declaration
public static string TabStyleName { get; }
Property Value
Type |
---|
System.String |
Theme
Gets or sets information about Office2007 color theme.
Declaration
public Office2007Theme Theme { get; set; }
Property Value
Type |
---|
Office2007Theme |
ThemeColors
Gets information about Office2007 theme colors.
Declaration
public Office2007Colors ThemeColors { get; }
Property Value
Type |
---|
Office2007Colors |
Methods
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
DrawBackground(DrawTabEventArgs)
Declaration
protected override void DrawBackground(DrawTabEventArgs drawItemInfo)
Parameters
Type | Name | Description |
---|---|---|
DrawTabEventArgs | drawItemInfo |
Overrides
DrawBorders(DrawTabEventArgs)
Declaration
protected override void DrawBorders(DrawTabEventArgs drawItemInfo)
Parameters
Type | Name | Description |
---|---|---|
DrawTabEventArgs | drawItemInfo |
Overrides
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
GetActiveForeColor()
Declaration
protected override Color GetActiveForeColor()
Returns
Type |
---|
System.Drawing.Color |
Overrides
GetBorderPathFromBounds(RectangleF)
Declaration
protected virtual GraphicsPath GetBorderPathFromBounds(RectangleF bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | bounds |
Returns
Type |
---|
System.Drawing.Drawing2D.GraphicsPath |
GetBorderPathFromBoundsOnSepertator(RectangleF)
Gets the path for for the tab and the line beneath the tabs.
Declaration
protected virtual GraphicsPath GetBorderPathFromBoundsOnSepertator(RectangleF bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | bounds | Rectangle bounds |
Returns
Type | Description |
---|---|
System.Drawing.Drawing2D.GraphicsPath | Returns Graphics Path |
GetForeColor()
Declaration
protected override Color GetForeColor()
Returns
Type |
---|
System.Drawing.Color |
Overrides
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 |
GetOverlapSize(SizeF)
Returns the overlap size. Overridden. See GetOverlapSize(SizeF).
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
Remarks
This implementation returns (0, 0).
GetPreferredSize(Graphics)
Returns the preferred size for the tabs.
Declaration
public override SizeF GetPreferredSize(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The Graphics object. |
Returns
Type | Description |
---|---|
System.Drawing.SizeF | The preferred size. |
Overrides
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 |
GetTopEllipseRoundedPath(RectangleF)
Gets specified rounded path for the rectangle for drawing top ellipse when office2007ColorScheme is black and tabPage is highlighted.
Declaration
protected GraphicsPath GetTopEllipseRoundedPath(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()