Class TabGroupRendererVS2005Beta
TabGroupRendererVS2005 paints tabs in group mode Visual studio 2005 Beta style.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools.Renderers
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class TabGroupRendererVS2005Beta : OneNoteStyleRenderer, ITabRenderer, IDisposable, ITabGroupRenderer
Constructors
TabGroupRendererVS2005Beta(ITabControl, ITabPanelRenderer)
Creates an instance of the TabGroupRendererVS2005Beta.
Declaration
public TabGroupRendererVS2005Beta(ITabControl parent, ITabPanelRenderer panelRenderer)
Parameters
Type | Name | Description |
---|---|---|
ITabControl | parent | The ITabControl instance. |
ITabPanelRenderer | panelRenderer | The parent ITabPanelRenderer instance. |
Fields
boundsChanged
Defines if bounds changed.
Declaration
protected bool boundsChanged
Field Value
Type |
---|
System.Boolean |
itemBounds
Stores bounds of tab items.
Declaration
protected ArrayList itemBounds
Field Value
Type |
---|
System.Collections.ArrayList |
m_hitBounds
Collection to store hit rectangles of items.
Declaration
protected ArrayList m_hitBounds
Field Value
Type |
---|
System.Collections.ArrayList |
m_innerPath
Inner shadowed border path.
Declaration
protected GraphicsPath m_innerPath
Field Value
Type |
---|
System.Drawing.Drawing2D.GraphicsPath |
m_tabGroupBounds
Stores tab group bounds.
Declaration
protected ArrayList m_tabGroupBounds
Field Value
Type |
---|
System.Collections.ArrayList |
m_tabProperty2010Extender
Declaration
protected static TabUIVS2010Properties m_tabProperty2010Extender
Field Value
Type |
---|
TabUIVS2010Properties |
m_tabProperty2012Extender
Declaration
protected static TabUIVS2012Properties m_tabProperty2012Extender
Field Value
Type |
---|
TabUIVS2012Properties |
m_tabPropertyExtender
Properties for panel painting for current style.
Declaration
protected static TabUIVS2005Properties m_tabPropertyExtender
Field Value
Type |
---|
TabUIVS2005Properties |
Properties
BorderColor
Border Color.
Declaration
protected override Color BorderColor { get; }
Property Value
Type |
---|
System.Drawing.Color |
Overrides
Bounds
Gets/sets bounds.
Declaration
public override RectangleF Bounds { get; set; }
Property Value
Type |
---|
System.Drawing.RectangleF |
Overrides
TabData
Gets/sets tab (group) data.
Declaration
public override ITabData TabData { get; set; }
Property Value
Type |
---|
ITabData |
Overrides
TabPanel2010PropertyExtender
Returns the ITabDefaultProperties instance that provides default properties for this renderer.
Declaration
public static TabUIVS2010Properties TabPanel2010PropertyExtender { get; }
Property Value
Type |
---|
TabUIVS2010Properties |
TabPanel2012PropertyExtender
Returns the ITabDefaultProperties instance that provides default properties for this renderer.
Declaration
public static TabUIVS2012Properties TabPanel2012PropertyExtender { get; }
Property Value
Type |
---|
TabUIVS2012Properties |
TabPanelPropertyExtender
Returns the ITabDefaultProperties instance that provides default properties for this renderer.
Declaration
public static TabUIVS2005Properties TabPanelPropertyExtender { get; }
Property Value
Type |
---|
TabUIVS2005Properties |
TabStyleName
Gets tab style name.
Declaration
public static string TabStyleName { get; }
Property Value
Type |
---|
System.String |
Methods
CalculateHitBound(RectangleF)
Calculates hit bounds for current item.
Declaration
protected virtual void CalculateHitBound(RectangleF bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | bounds | Bounds of item. |
CorrectBounds(RectangleF)
Corrects
Declaration
protected override RectangleF CorrectBounds(RectangleF bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | bounds |
Returns
Type |
---|
System.Drawing.RectangleF |
Overrides
DrawBackground(DrawTabEventArgs)
Override.
Declaration
protected override void DrawBackground(DrawTabEventArgs drawItemInfo)
Parameters
Type | Name | Description |
---|---|---|
DrawTabEventArgs | drawItemInfo | See the DrawTabEventArgs |
Overrides
DrawBorders(DrawTabEventArgs)
Override.
Declaration
protected override void DrawBorders(DrawTabEventArgs drawItemInfo)
Parameters
Type | Name | Description |
---|---|---|
DrawTabEventArgs | drawItemInfo | See the DrawTabEventArgs |
Overrides
DrawInterior(DrawTabEventArgs)
Draws interior.
Declaration
protected override void DrawInterior(DrawTabEventArgs drawItemInfo)
Parameters
Type | Name | Description |
---|---|---|
DrawTabEventArgs | drawItemInfo | Arguments for draw interior action. |
Overrides
GetBorderPathFromBounds(RectangleF)
Gets outer and inner border path from bounds in VS2005 style.
Declaration
protected override GraphicsPath GetBorderPathFromBounds(RectangleF bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | bounds | Bounds in which to draw border. |
Returns
Type | Description |
---|---|
System.Drawing.Drawing2D.GraphicsPath | Border path. |
Overrides
GetCurrentBounds()
Gets current bounds.
Declaration
public override RectangleF GetCurrentBounds()
Returns
Type | Description |
---|---|
System.Drawing.RectangleF | Current bounds. |
Overrides
GetGroupItemBounds(Int32)
Gets group item bounds.
Declaration
public RectangleF GetGroupItemBounds(int i)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | i | Number of item. |
Returns
Type | Description |
---|---|
System.Drawing.RectangleF | Bounds. |
GetInteriorBounds(RectangleF, Boolean)
Gets interior(separator of tabs)bounds.
Declaration
protected override RectangleF GetInteriorBounds(RectangleF currentBounds, bool selectedTab)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | currentBounds | Current bounds. |
System.Boolean | selectedTab | If tab is selected. |
Returns
Type | Description |
---|---|
System.Drawing.RectangleF | Interior bounds. |
Overrides
GetOverlapSize(SizeF)
Calculates overlap size.
Declaration
public override SizeF GetOverlapSize(SizeF tabSize)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.SizeF | tabSize | tab size. |
Returns
Type | Description |
---|---|
System.Drawing.SizeF | Size. |
Overrides
GetPreferredSize(Graphics)
Gets preferred size for tab item.
Declaration
public override SizeF GetPreferredSize(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics for string measuring. |
Returns
Type | Description |
---|---|
System.Drawing.SizeF | preferred size. |
Overrides
HitTest(PointF)
Performs hit test.
Declaration
public override bool HitTest(PointF mousePosition)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF | mousePosition | Mouse position. |
Returns
Type | Description |
---|---|
System.Boolean | If any tab item is hit. |
Overrides
PaintBackground(DrawTabEventArgs)
Draws background.
Declaration
protected virtual void PaintBackground(DrawTabEventArgs drawItemInfo)
Parameters
Type | Name | Description |
---|---|---|
DrawTabEventArgs | drawItemInfo | Painting arguments. |
PaintBorders(DrawTabEventArgs)
Draws borders.
Declaration
protected virtual void PaintBorders(DrawTabEventArgs drawItemInfo)
Parameters
Type | Name | Description |
---|---|---|
DrawTabEventArgs | drawItemInfo | Draw bounds action arguments. |
SetItemBounds(Graphics, RectangleF)
Sets item bounds.
Declaration
protected virtual void SetItemBounds(Graphics g, RectangleF tabBounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics to use. |
System.Drawing.RectangleF | tabBounds | Bounds of tab items. |