In This Article

MetroLightToolWindowTabStripRenderer Class

Provides a renderer for the TabStrip control that is similar to a Metro Light tool window style.

public class MetroLightToolWindowTabStripRenderer : VisualStudio2005ToolWindowTabStripRenderer, IDisposable, IToolWindowTabStripRenderer, ITabStripRenderer, IUIRenderer
Inheritance:
Object MarshalByRefObject DisposableObject TabStripRenderer VisualStudio2005ToolWindowTabStripRenderer Object
Implements:
IDisposable IToolWindowTabStripRenderer ITabStripRenderer IUIRenderer

Constructors

MetroLightToolWindowTabStripRenderer()

Initializes a new instance of the MetroLightToolWindowTabStripRenderer class.

public MetroLightToolWindowTabStripRenderer()

Remarks

The default constructor initializes all fields to their default values.

Properties

TabStripTabHotBackgroundFill

Gets or sets the BackgroundFill for a hot TabStripTab.

public BackgroundFill TabStripTabHotBackgroundFill { get; set; }

Property Value

BackgroundFill:

The BackgroundFill for a hot TabStripTab.

Methods

Dispose(Boolean)

Disposes any resources used by the object.

protected override void Dispose(bool disposing)
Parameter Type Description
disposing Boolean

Whether the object is being disposed.

DrawTabStripBackground(PaintEventArgs, Rectangle, TabStrip)

Draws the background of a TabStrip control.

public override void DrawTabStripBackground(PaintEventArgs e, Rectangle bounds, TabStrip tabStrip)
Parameter Type Description
e PaintEventArgs

A PaintEventArgs that contains the event data.

bounds Rectangle

The bounds in which to draw.

tabStrip TabStrip

The TabStrip being painted.

DrawTabStripTab(PaintEventArgs, Rectangle, TabStripTab)

Draws a TabStripTab.

public override void DrawTabStripTab(PaintEventArgs e, Rectangle bounds, TabStripTab tabStripTab)
Parameter Type Description
e PaintEventArgs

A PaintEventArgs that contains the event data.

bounds Rectangle

The bounds in which to draw.

tabStripTab TabStripTab

The TabStripTab that is being painted.

MeasureTabStripTab(Graphics, TabStripPage)

Measures the tab for the specified TabStripPage.

public override Size MeasureTabStripTab(Graphics g, TabStripPage tabStripPage)
Parameter Type Description
g Graphics

The Graphics object used to measure.

tabStripPage TabStripPage

The TabStripPage whose tab is being measured.

Returns

Size:

The Size of the tab.

ResetAll(Boolean)

Resets all property values to their defaults.

protected override void ResetAll(bool force)
Parameter Type Description
force Boolean

Whether to force resetting.

ResetTabStripTabContainerBackgroundFill()

Resets the TabStripTabContainerBackgroundFill property to its default value.

public override void ResetTabStripTabContainerBackgroundFill()

ResetTabStripTabHotBackgroundFill()

Resets the TabStripTabHotBackgroundFill property to its default value.

public virtual void ResetTabStripTabHotBackgroundFill()

ResetTabStripTabInnerMargin()

Resets the TabStripTabInnerMargin property to its default value.

public override void ResetTabStripTabInnerMargin()

ResetTabStripTabOuterMargin()

Resets the TabStripTabOuterMargin property to its default value.

public override void ResetTabStripTabOuterMargin()

ResetTabStripTabOverlap()

Resets the TabStripTabOverlap property to its default value.

public override void ResetTabStripTabOverlap()

ResetTabStripTabSelectedBackgroundFill()

Resets the TabStripTabSelectedBackgroundFill property to its default value.

public override void ResetTabStripTabSelectedBackgroundFill()

ResetTabStripTabSelectedBorderColor()

Resets the TabStripTabSelectedBorderColor property to its default value.

public override void ResetTabStripTabSelectedBorderColor()

ResetTabStripTabSelectedForeColor()

Resets the TabStripTabSelectedForeColor property to its default value.

public override void ResetTabStripTabSelectedForeColor()

ResetTabStripTabUnselectedBackgroundFill()

Resets the TabStripTabUnselectedBackgroundFill property to its default value.

public override void ResetTabStripTabUnselectedBackgroundFill()

ResetTabStripTabUnselectedBorderColor()

Resets the TabStripTabUnselectedBorderColor property to its default value.

public override void ResetTabStripTabUnselectedBorderColor()

ResetTabStripTabUnselectedForeColor()

Resets the TabStripTabUnselectedForeColor property to its default value.

public override void ResetTabStripTabUnselectedForeColor()

ShouldSerializeTabStripTabContainerBackgroundFill()

Indicates whether the TabStripTabContainerBackgroundFill property should be persisted.

public override bool ShouldSerializeTabStripTabContainerBackgroundFill()

Returns

Boolean:

true if the property value has changed from its default; otherwise, false.

ShouldSerializeTabStripTabHotBackgroundFill()

Indicates whether the TabStripTabHotBackgroundFill property should be persisted.

public virtual bool ShouldSerializeTabStripTabHotBackgroundFill()

Returns

Boolean:

true if the property value has changed from its default; otherwise, false.

ShouldSerializeTabStripTabInnerMargin()

Indicates whether the TabStripTabInnerMargin property should be persisted.

public override bool ShouldSerializeTabStripTabInnerMargin()

Returns

Boolean:

true if the property value has changed from its default; otherwise, false.

ShouldSerializeTabStripTabOuterMargin()

Indicates whether the TabStripTabOuterMargin property should be persisted.

public override bool ShouldSerializeTabStripTabOuterMargin()

Returns

Boolean:

true if the property value has changed from its default; otherwise, false.

ShouldSerializeTabStripTabOverlap()

Indicates whether the TabStripTabOverlap property should be persisted.

public override bool ShouldSerializeTabStripTabOverlap()

Returns

Boolean:

true if the property value has changed from its default; otherwise, false.

ShouldSerializeTabStripTabSelectedBackgroundFill()

Indicates whether the TabStripTabSelectedBackgroundFill property should be persisted.

public override bool ShouldSerializeTabStripTabSelectedBackgroundFill()

Returns

Boolean:

true if the property value has changed from its default; otherwise, false.

ShouldSerializeTabStripTabSelectedBorderColor()

Indicates whether the TabStripTabSelectedBorderColor property should be persisted.

public override bool ShouldSerializeTabStripTabSelectedBorderColor()

Returns

Boolean:

true if the property value has changed from its default; otherwise, false.

ShouldSerializeTabStripTabSelectedForeColor()

Indicates whether the TabStripTabSelectedForeColor property should be persisted.

public override bool ShouldSerializeTabStripTabSelectedForeColor()

Returns

Boolean:

true if the property value has changed from its default; otherwise, false.

ShouldSerializeTabStripTabUnselectedBackgroundFill()

Indicates whether the TabStripTabUnselectedBackgroundFill property should be persisted.

public override bool ShouldSerializeTabStripTabUnselectedBackgroundFill()

Returns

Boolean:

true if the property value has changed from its default; otherwise, false.

ShouldSerializeTabStripTabUnselectedBorderColor()

Indicates whether the TabStripTabUnselectedBorderColor property should be persisted.

public override bool ShouldSerializeTabStripTabUnselectedBorderColor()

Returns

Boolean:

true if the property value has changed from its default; otherwise, false.

ShouldSerializeTabStripTabUnselectedForeColor()

Indicates whether the TabStripTabUnselectedForeColor property should be persisted.

public override bool ShouldSerializeTabStripTabUnselectedForeColor()

Returns

Boolean:

true if the property value has changed from its default; otherwise, false.

Inherited Members