Class TabRenderer2D
The tab renderer that implements the 2D tabs look-and-feel.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class TabRenderer2D : TabRendererBase, ITabRenderer, IDisposable
Constructors
TabRenderer2D(ITabControl, ITabPanelRenderer)
Creates a new instance of the TabRenderer2D class.
Declaration
public TabRenderer2D(ITabControl parent, ITabPanelRenderer panelRenderer)
Parameters
Type | Name | Description |
---|---|---|
ITabControl | parent | The tab control parent. |
ITabPanelRenderer | panelRenderer | The ITabPanelRenderer parent. |
Fields
buttonBorderColors
Specifies the default border colors for the 4 borders.
Declaration
protected static Color[] buttonBorderColors
Field Value
Type |
---|
System.Drawing.Color[] |
OVERLAPX
The default horizontal overlap.
Declaration
public static readonly int OVERLAPX
Field Value
Type |
---|
System.Int32 |
Properties
CloseButtonPadding
Gets space in pixels between tab's interior and close button.
Declaration
public override int CloseButtonPadding { get; }
Property Value
Type |
---|
System.Int32 |
Overrides
CorrectCloseButtonPosition
Declaration
protected override Point CorrectCloseButtonPosition { get; }
Property Value
Type |
---|
System.Drawing.Point |
Overrides
LabelEditOffsetY
Returns y-coordinate offset for Label Edit control, in Tab's captions editable case.
Declaration
public override int LabelEditOffsetY { get; }
Property Value
Type |
---|
System.Int32 |
Overrides
TabPanelPropertyExtender
Returns the ITabDefaultProperties instance that provides default properties for this renderer.
Declaration
public static TabPanelProperty2D TabPanelPropertyExtender { get; }
Property Value
Type |
---|
TabPanelProperty2D |
TabStyleName
Returns the unique name of this tab renderer.
Declaration
public static string TabStyleName { get; }
Property Value
Type |
---|
System.String |
Methods
BorderColors(TabRenderer2D.BorderSide, TabAlignment)
Returns the border color given the border and the alignment.
Declaration
protected static Color BorderColors(TabRenderer2D.BorderSide border, TabAlignment curAlign)
Parameters
Type | Name | Description |
---|---|---|
TabRenderer2D.BorderSide | border | |
System.Windows.Forms.TabAlignment | curAlign | The System.Windows.Forms.TabAlignment. |
Returns
Type | Description |
---|---|
System.Drawing.Color | The Color for the border. |
DrawBackground(DrawTabEventArgs)
Overridden. See DrawBackground(DrawTabEventArgs).
Declaration
protected override void DrawBackground(DrawTabEventArgs drawItemInfo)
Parameters
Type | Name | Description |
---|---|---|
DrawTabEventArgs | drawItemInfo |
Overrides
DrawBorders(DrawTabEventArgs)
Overridden. See DrawBorders(DrawTabEventArgs).
Declaration
protected override void DrawBorders(DrawTabEventArgs drawItemInfo)
Parameters
Type | Name | Description |
---|---|---|
DrawTabEventArgs | drawItemInfo |
Overrides
DrawFocusRect(Graphics, RectangleF, Color, Color)
Declaration
protected override void DrawFocusRect(Graphics g, RectangleF focusRect, Color fore, Color back)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.RectangleF | focusRect | |
System.Drawing.Color | fore | |
System.Drawing.Color | back |
Overrides
DrawInterior(DrawTabEventArgs)
Overridden. See DrawInterior(DrawTabEventArgs).
Declaration
protected override void DrawInterior(DrawTabEventArgs drawItemInfo)
Parameters
Type | Name | Description |
---|---|---|
DrawTabEventArgs | drawItemInfo |
Overrides
GetOverlapSize(SizeF)
Returns the overlap size. Overridden. See GetOverlapSize(SizeF).
Declaration
public override SizeF GetOverlapSize(SizeF tabSize)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.SizeF | tabSize |
Returns
Type | Description |
---|---|
System.Drawing.SizeF | The overlap size. |
Overrides
Remarks
This implementation returns (0, 0).
RegisterTabType()
Registers custom tab styles with the framework.
Declaration
public static void RegisterTabType()