Class ThemedTabDrawing
Manages the theme handle given a control and exposes some basic themed Drawing methods.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class ThemedTabDrawing : ThemedControlDrawing, IDisposable
Constructors
ThemedTabDrawing(TabControlAdv, String)
Constructor of the ThemedTabDrawing.
Declaration
public ThemedTabDrawing(TabControlAdv tabControl, string classList)
Parameters
Type | Name | Description |
---|---|---|
TabControlAdv | tabControl | The instance of the TabControlAdv. |
System.String | classList | Pointer to a string that contains a semicolon-separated list of classes, as expected in the OpenThemeData API. |
Methods
DetachTabControl()
Remove the tab control.
Declaration
public void DetachTabControl()
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
DrawTabBackground(Graphics, ITabRenderer, Boolean, Rectangle)
Draw the tab background.
Declaration
public void DrawTabBackground(Graphics g, ITabRenderer renderer, bool selectedTab, Rectangle rect)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | A System.Drawing.Graphics object to draw the body of the tab. |
ITabRenderer | renderer | The instance of the ITabRenderer. |
System.Boolean | selectedTab | Indicates whether the selected tab. |
System.Drawing.Rectangle | rect | The rectangle of the tab. |
DrawTabBody(Graphics, Rectangle)
Draw the body of the tab.
Declaration
public void DrawTabBody(Graphics g, Rectangle rect)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | A System.Drawing.Graphics object to draw the body of the tab. |
System.Drawing.Rectangle | rect | The background System.Drawing.Rectangle to draw the TabPane. |
DrawTabBody(Graphics, Rectangle, Rectangle)
Draw the themed background of the Tab Pane.
Declaration
public void DrawTabBody(Graphics g, Rectangle rect, Rectangle clipRect)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | A System.Drawing.Graphics object to draw the TabPane. |
System.Drawing.Rectangle | rect | The background System.Drawing.Rectangle to draw the TabPane. |
System.Drawing.Rectangle | clipRect | The clip rectangle to draw the background. |
DrawTabPane(Graphics, Rectangle)
Draw the themed background of the Tab Pane.
Declaration
public void DrawTabPane(Graphics g, Rectangle rect)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | A System.Drawing.Graphics object to draw the TabPane. |
System.Drawing.Rectangle | rect | The background System.Drawing.Rectangle to draw the TabPane. |