Class TabRendererVS2008
The Tab Renderer that implements the VS2008 look and feel.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class TabRendererVS2008 : OneNoteStyleRenderer, ITabRenderer, IDisposable
Constructors
TabRendererVS2008(ITabControl, ITabPanelRenderer)
Initializes a new instance of the TabRendererVS2008 class.
Declaration
public TabRendererVS2008(ITabControl parent, ITabPanelRenderer panelRenderer)
Parameters
Type | Name | Description |
---|---|---|
ITabControl | parent | The tab control parent. |
ITabPanelRenderer | panelRenderer | The ITabPanelRenderer parent. |
Fields
DEF_SELECTED_BORDER_COLOR
Selected item border color.
Declaration
protected static readonly Color DEF_SELECTED_BORDER_COLOR
Field Value
Type |
---|
System.Drawing.Color |
DEF_SELECTION_LINE_WIDTH
Selected item line width.
Declaration
protected const int DEF_SELECTION_LINE_WIDTH = 2
Field Value
Type |
---|
System.Int32 |
Properties
BorderColor
Declaration
protected override Color BorderColor { get; }
Property Value
Type |
---|
System.Drawing.Color |
Overrides
CloseButtonPadding
Gets space in pixels between tab's interior and close button.
Declaration
public override int CloseButtonPadding { get; }
Property Value
Type |
---|
System.Int32 |
Overrides
TabBorderColor
Indicates the border color of the tabs.
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 StyleRendererPropertyVS2008 TabPanelPropertyExtender { get; }
Property Value
Type |
---|
StyleRendererPropertyVS2008 |
TabStyleName
Gets the unique name of this tab renderer.
Declaration
public static string TabStyleName { get; }
Property Value
Type |
---|
System.String |
Methods
CorrectBounds(RectangleF)
Declaration
protected override RectangleF CorrectBounds(RectangleF bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | bounds |
Returns
Type |
---|
System.Drawing.RectangleF |
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
DrawInterior(DrawTabEventArgs)
Declaration
protected override void DrawInterior(DrawTabEventArgs drawItemInfo)
Parameters
Type | Name | Description |
---|---|---|
DrawTabEventArgs | drawItemInfo |
Overrides
GetBorderPathFromBounds(RectangleF)
Gets the path for the tab.
Declaration
protected override GraphicsPath GetBorderPathFromBounds(RectangleF bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | bounds | Rectangle bounds |
Returns
Type | Description |
---|---|
System.Drawing.Drawing2D.GraphicsPath | Returns Graphics Path |
Overrides
GetCurrentBounds()
Returns the current drawing bounds.
Declaration
public override RectangleF GetCurrentBounds()
Returns
Type | Description |
---|---|
System.Drawing.RectangleF | The bounds as a rectangle. |
Overrides
Remarks
If this is the selected tab, then this method adds the overlapped size to the bounds returned by Bounds.
GetForeColor()
Returns the forecolor with which to draw the tab text.
Declaration
protected override Color GetForeColor()
Returns
Type | Description |
---|---|
System.Drawing.Color | Fore color. |
Overrides
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 | Returns Rectangle |
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 |
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, RectangleF)
Declaration
protected virtual GraphicsPath GetTabBorderPath(RectangleF panelBounds, RectangleF bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | panelBounds | |
System.Drawing.RectangleF | bounds |
Returns
Type |
---|
System.Drawing.Drawing2D.GraphicsPath |
RegisterTabType()
Registers the type of the tab.
Declaration
public static void RegisterTabType()