Class TabRendererDockingWhidbey
This renderer allows user to draw TabPages VS2005DockingStyle style.
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 TabRendererDockingWhidbey : TabRenderer2D, ITabRenderer, IDisposable
Constructors
TabRendererDockingWhidbey(ITabControl, ITabPanelRenderer)
Initializes a new instance of the TabRendererDockingWhidbey class.
Declaration
public TabRendererDockingWhidbey(ITabControl parent, ITabPanelRenderer panelRenderer)
Parameters
Type | Name | Description |
---|---|---|
ITabControl | parent | The tab control parent. |
ITabPanelRenderer | panelRenderer | The ITabPanelRenderer parent. |
Properties
Bounds
Gets / sets the current bounds of this tab. See Bounds.
Declaration
public override RectangleF Bounds { get; set; }
Property Value
Type |
---|
System.Drawing.RectangleF |
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 StyleRendererPropertyDockingWhidbey TabPanelPropertyExtender { get; }
Property Value
Type |
---|
StyleRendererPropertyDockingWhidbey |
TabStyleName
Gets the unique name of this tab renderer.
Declaration
public static string TabStyleName { get; }
Property Value
Type |
---|
System.String |
Methods
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
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
GetBackgroundBrush(DrawItemState)
Declaration
protected virtual Brush GetBackgroundBrush(DrawItemState state)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.DrawItemState | state |
Returns
Type |
---|
System.Drawing.Brush |
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 |
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 |
GetPreferredSize(Graphics)
Returns the preferred size for the tabs.
Declaration
public override SizeF GetPreferredSize(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g |
Returns
Type |
---|
System.Drawing.SizeF |
Overrides
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 custom tab styles with the framework.
Declaration
public static void RegisterTabType()
Implements
System.IDisposable