Class TabRendererWhidbey
This renderer allows user to draw TabPages with Office2003 style.
Inheritance
System.Object
TabRendererWhidbey
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class TabRendererWhidbey : OneNoteStyleRenderer, ITabRenderer, IDisposable
Constructors
TabRendererWhidbey(ITabControl, ITabPanelRenderer)
Initializes a new instance of the TabRendererWhidbey class.
Declaration
public TabRendererWhidbey(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
ShouldDrawHighLightUpper
Declaration
protected override bool ShouldDrawHighLightUpper { get; }
Property Value
Type |
---|
System.Boolean |
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 StyleRendererPropertyWhidbey TabPanelPropertyExtender { get; }
Property Value
Type |
---|
StyleRendererPropertyWhidbey |
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
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 |
---|
System.Drawing.SizeF |
Overrides
RegisterTabType()
Registers the custom tab style.
Declaration
public static void RegisterTabType()
Implements
System.IDisposable