Class TabRendererVS2010
The Tab Renderer that implements the VS2010 look and feel.
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 TabRendererVS2010 : TabRenderer2D, ITabRenderer, IDisposable
Constructors
TabRendererVS2010(ITabControl, ITabPanelRenderer)
Constructor of the TabRendererVS2010.
Declaration
public TabRendererVS2010(ITabControl tabControl, ITabPanelRenderer tabPanelRenderer)
Parameters
Type | Name | Description |
---|---|---|
ITabControl | tabControl | The instance of the ITabControl. |
ITabPanelRenderer | tabPanelRenderer | The instance of the ITabPanelRenderer. |
Fields
DEF_SELECTION_LINE_WIDTH
Declaration
protected const int DEF_SELECTION_LINE_WIDTH = 5
Field Value
Type |
---|
System.Int32 |
Properties
CloseButtonBounds
Gets the bounds of the close button.
Declaration
public Rectangle CloseButtonBounds { get; }
Property Value
Type |
---|
System.Drawing.Rectangle |
TabPanelPropertyExtender
Gets the tab panel property extender.
Declaration
public static StyleRendererPropertyVS2010 TabPanelPropertyExtender { get; }
Property Value
Type | Description |
---|---|
StyleRendererPropertyVS2010 | The tab panel property extender. |
TabStyleName
Gets the name of the tab style.
Declaration
public static string TabStyleName { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the tab style. |
Methods
CloseButtonHitTest(Point)
Checks, does CloseButton's bounds contain specified point.
Declaration
public override bool CloseButtonHitTest(Point pt)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Point | pt | Point to check. |
Returns
Type | Description |
---|---|
System.Boolean | true, if CloseButton's bounds contain specified point, otherwise - false. |
Overrides
CorrectBounds(RectangleF)
Declaration
protected override RectangleF CorrectBounds(RectangleF bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | bounds |
Returns
Type |
---|
System.Drawing.RectangleF |
Overrides
CorrectInteriorBounds(RectangleF)
Declaration
protected override RectangleF CorrectInteriorBounds(RectangleF rectTextAndImage)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | rectTextAndImage |
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
DrawCloseButton(Graphics, RectangleF, DrawTabEventArgs)
Declaration
protected override void DrawCloseButton(Graphics g, RectangleF closeButtonBounds, DrawTabEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.RectangleF | closeButtonBounds | |
DrawTabEventArgs | e |
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)
Declaration
protected override void DrawInterior(DrawTabEventArgs drawItemInfo)
Parameters
Type | Name | Description |
---|---|---|
DrawTabEventArgs | drawItemInfo |
Overrides
GetBorderPathFromBounds(RectangleF)
Gets the path for for the tab and the line beneath the tabs.
Declaration
protected virtual GraphicsPath GetBorderPathFromBounds(RectangleF bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | bounds | Rectangle bounds |
Returns
Type | Description |
---|---|
System.Drawing.Drawing2D.GraphicsPath | Returns Graphics Path |
GetForeColor()
Declaration
protected override Color GetForeColor()
Returns
Type |
---|
System.Drawing.Color |
Overrides
GetLowerTabBorderPath()
Gets the path for the line beneath the tabs.
Declaration
protected virtual GraphicsPath GetLowerTabBorderPath()
Returns
Type | Description |
---|---|
System.Drawing.Drawing2D.GraphicsPath | Returns Graphics Path |
GetTabBorderPath(RectangleF)
Gets the path for the tab.
Declaration
protected virtual GraphicsPath GetTabBorderPath(RectangleF bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | bounds | Rectangle bounds |
Returns
Type | Description |
---|---|
System.Drawing.Drawing2D.GraphicsPath | Returns Graphics path |
RegisterTabType()
Registers the type of the tab.
Declaration
public static void RegisterTabType()
Implements
System.IDisposable