Class TabControl.TabControlRenderer
Represents the renderer of the TabControl.
Namespace: Manina.Windows.Forms
Assembly: TabControl.dll
Syntax
public class TabControlRenderer
Constructors
| Improve this Doc View SourceTabControlRenderer(TabControl)
Initializes a new instance of the TabControl.TabControlRenderer class.
Declaration
public TabControlRenderer(TabControl parent)
Parameters
Type | Name | Description |
---|---|---|
TabControl | parent |
Properties
| Improve this Doc View SourceActiveTabBackColor
Gets or sets the background color of active tabs.
Declaration
public virtual Color ActiveTabBackColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
ActiveTabForeColor
Gets or sets the foreground color of active tabs.
Declaration
public virtual Color ActiveTabForeColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
BorderColor
Gets or sets the color of control border.
Declaration
public virtual Color BorderColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
HotAndActiveTabBackColor
Gets or sets the background color of hot and active tabs.
Declaration
public virtual Color HotAndActiveTabBackColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
HotButtonBackColor
Gets or sets the background color of hot scroll buttons.
Declaration
public virtual Color HotButtonBackColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
HotTabBackColor
Gets or sets the background color of hot tabs.
Declaration
public virtual Color HotTabBackColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
HotTabForeColor
Gets or sets the foreground color of hot tabs.
Declaration
public virtual Color HotTabForeColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
InactiveButtonBackColor
Gets or sets the background color of inactive scroll buttons.
Declaration
public virtual Color InactiveButtonBackColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
InactiveTabBackColor
Gets or sets the background color of inactive tabs.
Declaration
public virtual Color InactiveTabBackColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
InactiveTabForeColor
Gets or sets the foreground color of inactive tabs.
Declaration
public virtual Color InactiveTabForeColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
Parent
Gets the parent control.
Declaration
[Browsable(false)]
public TabControl Parent { get; protected set; }
Property Value
Type | Description |
---|---|
TabControl |
PressedButtonBackColor
Gets or sets the background color of pressed scroll buttons.
Declaration
public virtual Color PressedButtonBackColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
PressedTabBackColor
Gets or sets the background color of pressed tabs.
Declaration
public virtual Color PressedTabBackColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
PressedTabForeColor
Gets or sets the foreground color of pressed tabs.
Declaration
public virtual Color PressedTabForeColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
SeparatorColor
Gets or sets the color of tab separators.
Declaration
public virtual Color SeparatorColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
UseTabColors
Gets or sets whether to use the ForeColor and BackColor properties of the control to paint tabs.
Declaration
public virtual bool UseTabColors { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceDrawBackGround(Graphics)
Draws the background of the control.
Declaration
public virtual void DrawBackGround(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The graphics to draw on. |
DrawBorder(Graphics, Rectangle)
Draws a border around the control.
Declaration
public virtual void DrawBorder(Graphics g, Rectangle borderBounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The graphics to draw on. |
System.Drawing.Rectangle | borderBounds | Bounding rectangle of the display area of the control. |
DrawCloseButton(Graphics, TabControl.TabControlRenderer.DrawTabParams)
Draws the close button of a tab.
Declaration
public virtual void DrawCloseButton(Graphics g, TabControl.TabControlRenderer.DrawTabParams param)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The graphics to draw on. |
TabControl.TabControlRenderer.DrawTabParams | param | The parameters required to draw the tab. |
DrawFarScrollButton(Graphics, TabControl.TabControlRenderer.DrawButtonParams)
Draws the far scroll button.
Declaration
public virtual void DrawFarScrollButton(Graphics g, TabControl.TabControlRenderer.DrawButtonParams param)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The graphics to draw on. |
TabControl.TabControlRenderer.DrawButtonParams | param | The parameters required to draw the button. |
DrawNearScrollButton(Graphics, TabControl.TabControlRenderer.DrawButtonParams)
Draws the near scroll button.
Declaration
public virtual void DrawNearScrollButton(Graphics g, TabControl.TabControlRenderer.DrawButtonParams param)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The graphics to draw on. |
TabControl.TabControlRenderer.DrawButtonParams | param | The parameters required to draw the button. |
DrawSeparator(Graphics, TabControl.TabControlRenderer.DrawTabParams)
Draws the separators between tabs.
Declaration
public virtual void DrawSeparator(Graphics g, TabControl.TabControlRenderer.DrawTabParams param)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The graphics to draw on. |
TabControl.TabControlRenderer.DrawTabParams | param | The parameters required to draw the tab. |
DrawTabBackGround(Graphics, TabControl.TabControlRenderer.DrawTabParams)
Draws the background of a tab.
Declaration
public virtual void DrawTabBackGround(Graphics g, TabControl.TabControlRenderer.DrawTabParams param)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The graphics to draw on. |
TabControl.TabControlRenderer.DrawTabParams | param | The parameters required to draw the tab. |
DrawTabContents(Graphics, TabControl.TabControlRenderer.DrawTabParams)
Draws the contents of a tab.
Declaration
public virtual void DrawTabContents(Graphics g, TabControl.TabControlRenderer.DrawTabParams param)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The graphics to draw on. |
TabControl.TabControlRenderer.DrawTabParams | param | The parameters required to draw the tab. |
DrawTabIcon(Graphics, TabControl.TabControlRenderer.DrawTabParams)
Draws the icon of a tab.
Declaration
public virtual void DrawTabIcon(Graphics g, TabControl.TabControlRenderer.DrawTabParams param)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The graphics to draw on. |
TabControl.TabControlRenderer.DrawTabParams | param | The parameters required to draw the tab. |
DrawTabText(Graphics, TabControl.TabControlRenderer.DrawTabParams)
Draws the text of a tab.
Declaration
public virtual void DrawTabText(Graphics g, TabControl.TabControlRenderer.DrawTabParams param)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The graphics to draw on. |
TabControl.TabControlRenderer.DrawTabParams | param | The parameters required to draw the tab. |
GetCloseTabButtonBackColor(TabControl.TabControlRenderer.DrawTabParams)
Returns close tab button backcolor for the given state.
Declaration
protected Color GetCloseTabButtonBackColor(TabControl.TabControlRenderer.DrawTabParams param)
Parameters
Type | Name | Description |
---|---|---|
TabControl.TabControlRenderer.DrawTabParams | param | The state of the tab. |
Returns
Type | Description |
---|---|
System.Drawing.Color |
GetScrollButtonBackColor(TabControl.TabControlRenderer.DrawButtonParams)
Returns scroll button backcolor for the given state.
Declaration
protected Color GetScrollButtonBackColor(TabControl.TabControlRenderer.DrawButtonParams param)
Parameters
Type | Name | Description |
---|---|---|
TabControl.TabControlRenderer.DrawButtonParams | param | The state of the button. |
Returns
Type | Description |
---|---|
System.Drawing.Color |
GetTabBackColor(TabControl.TabControlRenderer.DrawTabParams)
Returns tab backcolor for the given state.
Declaration
protected Color GetTabBackColor(TabControl.TabControlRenderer.DrawTabParams param)
Parameters
Type | Name | Description |
---|---|---|
TabControl.TabControlRenderer.DrawTabParams | param | The state of the tab. |
Returns
Type | Description |
---|---|
System.Drawing.Color |
GetTabForeColor(TabControl.TabControlRenderer.DrawTabParams)
Returns tab forecolor for the given state.
Declaration
protected Color GetTabForeColor(TabControl.TabControlRenderer.DrawTabParams param)
Parameters
Type | Name | Description |
---|---|---|
TabControl.TabControlRenderer.DrawTabParams | param | The state of the tab. |
Returns
Type | Description |
---|---|
System.Drawing.Color |
Render(Graphics)
Draws the control.
Declaration
public virtual void Render(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g |