Show / Hide Table of Contents

Class TabControl.TabControlRenderer

Represents the renderer of the TabControl.

Inheritance
System.Object
TabControl.TabControlRenderer
NoirRenderer
Namespace: Manina.Windows.Forms
Assembly: TabControl.dll
Syntax
public class TabControlRenderer

Constructors

| Improve this Doc View Source

TabControlRenderer(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 Source

ActiveTabBackColor

Gets or sets the background color of active tabs.

Declaration
public virtual Color ActiveTabBackColor { get; set; }
Property Value
Type Description
System.Drawing.Color
| Improve this Doc View Source

ActiveTabForeColor

Gets or sets the foreground color of active tabs.

Declaration
public virtual Color ActiveTabForeColor { get; set; }
Property Value
Type Description
System.Drawing.Color
| Improve this Doc View Source

BorderColor

Gets or sets the color of control border.

Declaration
public virtual Color BorderColor { get; set; }
Property Value
Type Description
System.Drawing.Color
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

HotTabBackColor

Gets or sets the background color of hot tabs.

Declaration
public virtual Color HotTabBackColor { get; set; }
Property Value
Type Description
System.Drawing.Color
| Improve this Doc View Source

HotTabForeColor

Gets or sets the foreground color of hot tabs.

Declaration
public virtual Color HotTabForeColor { get; set; }
Property Value
Type Description
System.Drawing.Color
| Improve this Doc View Source

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
| Improve this Doc View Source

InactiveTabBackColor

Gets or sets the background color of inactive tabs.

Declaration
public virtual Color InactiveTabBackColor { get; set; }
Property Value
Type Description
System.Drawing.Color
| Improve this Doc View Source

InactiveTabForeColor

Gets or sets the foreground color of inactive tabs.

Declaration
public virtual Color InactiveTabForeColor { get; set; }
Property Value
Type Description
System.Drawing.Color
| Improve this Doc View Source

Parent

Gets the parent control.

Declaration
[Browsable(false)]
public TabControl Parent { get; protected set; }
Property Value
Type Description
TabControl
| Improve this Doc View Source

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
| Improve this Doc View Source

PressedTabBackColor

Gets or sets the background color of pressed tabs.

Declaration
public virtual Color PressedTabBackColor { get; set; }
Property Value
Type Description
System.Drawing.Color
| Improve this Doc View Source

PressedTabForeColor

Gets or sets the foreground color of pressed tabs.

Declaration
public virtual Color PressedTabForeColor { get; set; }
Property Value
Type Description
System.Drawing.Color
| Improve this Doc View Source

SeparatorColor

Gets or sets the color of tab separators.

Declaration
public virtual Color SeparatorColor { get; set; }
Property Value
Type Description
System.Drawing.Color
| Improve this Doc View Source

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 Source

DrawBackGround(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

Render(Graphics)

Draws the control.

Declaration
public virtual void Render(Graphics g)
Parameters
Type Name Description
System.Drawing.Graphics g
Back to top Copyright © 2018 Özgür Özçıtak