Class TabRenderer3D
The tab renderer that implements the 3D tabs look-and-feel.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class TabRenderer3D : TabRendererBase, ITabRenderer, IDisposable
Constructors
TabRenderer3D(ITabControl, ITabPanelRenderer)
Creates a new instance of the TabRenderer3D class.
Declaration
public TabRenderer3D(ITabControl parent, ITabPanelRenderer panelRenderer)
Parameters
Type | Name | Description |
---|---|---|
ITabControl | parent | The tab control parent. |
ITabPanelRenderer | panelRenderer | The ITabPanelRenderer parent. |
Fields
OVERLAPX
The default horizontal overlap.
Declaration
public static readonly int OVERLAPX
Field Value
Type |
---|
System.Int32 |
OVERLAPY
The default vertical overlap.
Declaration
public static readonly int OVERLAPY
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 TabPanelProperty3D TabPanelPropertyExtender { get; }
Property Value
Type |
---|
TabPanelProperty3D |
TabStyleName
Returns the unique name of this tab renderer.
Declaration
public static string TabStyleName { get; }
Property Value
Type |
---|
System.String |
Methods
AdjustBoundsAndGraphicsForAlignment(Graphics, RectangleF, TabAlignment)
Adjusts the bounds and graphics based on alignment.
Declaration
protected RectangleF AdjustBoundsAndGraphicsForAlignment(Graphics g, RectangleF oldBounds, TabAlignment align)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.RectangleF | oldBounds | |
System.Windows.Forms.TabAlignment | align |
Returns
Type |
---|
System.Drawing.RectangleF |
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
DrawInterior(DrawTabEventArgs)
Overridden. See DrawInterior(DrawTabEventArgs).
Declaration
protected override void DrawInterior(DrawTabEventArgs drawItemInfo)
Parameters
Type | Name | Description |
---|---|---|
DrawTabEventArgs | drawItemInfo |
Overrides
GetOverlapSize(SizeF)
Returns the overlapped size, if any, of the tabs. 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
GetPolygonFromBounds(RectangleF)
Returns the polygonal border of the tab from the bounds.
Declaration
public PointF[] GetPolygonFromBounds(RectangleF bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | bounds | The tab's bounds. |
Returns
Type | Description |
---|---|
System.Drawing.PointF[] | The polygonal border. |
GetShadePolygonFromBounds(RectangleF)
Returns the polygonal shade border of the tab from the bounds.
Declaration
public PointF[] GetShadePolygonFromBounds(RectangleF bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | bounds | The tab's bounds. |
Returns
Type | Description |
---|---|
System.Drawing.PointF[] | The polygonal border. |
RegisterTabType()
Registers custom tab styles with the framework.
Declaration
public static void RegisterTabType()