Interface ITabControl
The interface that represents the parent tab control.
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public interface ITabControl
Remarks
Implement this interface if you need to create a custom tab control that uses the ITabPanelRenderer and ITabRenderer framework.
Properties
BorderVisible
Tabs border visibility.
Declaration
bool BorderVisible { get; }
Property Value
Type |
---|
System.Boolean |
BorderWidth
Tabs border width.
Declaration
int BorderWidth { get; }
Property Value
Type |
---|
System.Int32 |
ClientRectangle
Bounds of the tabControl.
Declaration
Rectangle ClientRectangle { get; }
Property Value
Type |
---|
System.Drawing.Rectangle |
MultilineText
Indicates multiline text.
Declaration
bool MultilineText { get; }
Property Value
Type |
---|
System.Boolean |
Office2007ColorScheme
Office2007 color scheme.
Declaration
Office2007Theme Office2007ColorScheme { get; }
Property Value
Type |
---|
Office2007Theme |
Office2010ColorTheme
Office2010 color scheme.
Declaration
Office2010Theme Office2010ColorTheme { get; }
Property Value
Type |
---|
Office2010Theme |
Renderer
Returns the tab panel renderer used to draw the tab panel.
Declaration
ITabPanelRenderer Renderer { get; }
Property Value
Type |
---|
ITabPanelRenderer |
ThemedDrawing
Returns the drawing utility object that helps draw themed tabs.
Declaration
ThemedTabDrawing ThemedDrawing { get; }
Property Value
Type |
---|
ThemedTabDrawing |
ThemesEnabled
Indicates whether XP Themes should be used if available for drawing.
Declaration
bool ThemesEnabled { get; }
Property Value
Type |
---|
System.Boolean |
UseMnemonic
Declaration
bool UseMnemonic { get; }
Property Value
Type |
---|
System.Boolean |
Methods
GetControl()
Returns the System.Windows.Forms.Control instance.
Declaration
Control GetControl()
Returns
Type |
---|
System.Windows.Forms.Control |
GetGraphics()
Returns the System.Drawing.Graphics object used by this Control for painting.
Declaration
Graphics GetGraphics()
Returns
Type |
---|
System.Drawing.Graphics |
IsDesignMode()
Queries if this is design mode.
Declaration
bool IsDesignMode()
Returns
Type | Description |
---|---|
System.Boolean | True if in design mode; false otherwise. |
OnDrawItem(DrawTabEventArgs)
Called to let custom drawing of the tabs.
Declaration
bool OnDrawItem(DrawTabEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
DrawTabEventArgs | eventArgs | The DrawTabEventArgs object containing some information regarding this call. |
Returns
Type | Description |
---|---|
System.Boolean | True if custom drawing was performed; false otherwise. |
OnRepaint(RectangleF)
Called to force a repaint in the specified rectangle.
Declaration
void OnRepaint(RectangleF affectedRect)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | affectedRect | The rectangle to repaint. |
OnScrollPositionChanged()
Called to notify a change in scroll position.
Declaration
void OnScrollPositionChanged()
OnTabPanelBoundsAffected()
Called when the tab panel's bounds are affected.
Declaration
void OnTabPanelBoundsAffected()
ValidateFocusedTab()
Indicates whether to validate the current active tab page.
Declaration
bool ValidateFocusedTab()
Returns
Type |
---|
System.Boolean |