In This Article

VisualStudio2005ToolWindowTabStripRenderer Class

Provides a renderer for the TabStrip control that is similar to a Visual Studio 2005 tool window style.

public class VisualStudio2005ToolWindowTabStripRenderer : TabStripRenderer, IDisposable, IToolWindowTabStripRenderer, ITabStripRenderer, IUIRenderer
Inheritance:
Object MarshalByRefObject DisposableObject TabStripRenderer Object
Derived:
MetroLightDocumentWindowTabStripRenderer MetroLightToolWindowTabStripRenderer Office2003ToolWindowTabStripRenderer VisualStudio2005Beta2ToolWindowTabStripRenderer VisualStudio2005DocumentWindowTabStripRenderer
Implements:
IDisposable IToolWindowTabStripRenderer ITabStripRenderer IUIRenderer

Constructors

VisualStudio2005ToolWindowTabStripRenderer()

Initializes a new instance of the VisualStudio2005ToolWindowTabStripRenderer class.

public VisualStudio2005ToolWindowTabStripRenderer()

Remarks

The default constructor initializes all fields to their default values.

Properties

MatchBackgroundToParentForm

Gets or sets whether to match certain backgrounds to the parent form's client rectangle.

public virtual bool MatchBackgroundToParentForm { get; set; }

Property Value

Boolean:

true if certain backgrounds should be matched to the parent form's client rectangle; otherwise, false.

TabStripBackgroundFill

Gets or sets the BackgroundFill for a TabStrip.

public BackgroundFill TabStripBackgroundFill { get; set; }

Property Value

BackgroundFill:

The BackgroundFill for a TabStrip.

TabStripButtonGlyphColor

Gets or sets the glyph color of a TabStripButton.

public Color TabStripButtonGlyphColor { get; set; }

Property Value

Color:

A Color object specifying the glyph color of a TabStripButton.

TabStripButtonHotBackgroundFill

Gets or sets the BackgroundFill for a TabStripButton in a hot state.

public BackgroundFill TabStripButtonHotBackgroundFill { get; set; }

Property Value

BackgroundFill:

The BackgroundFill for a TabStripButton in a hot state.

TabStripButtonHotBorder

Gets or sets the Border for a TabStripButton in a hot state.

public Border TabStripButtonHotBorder { get; set; }

Property Value

Border:

The Border for a TabStripButton in a hot state.

TabStripButtonHotPressedBackgroundFill

Gets or sets the BackgroundFill for a TabStripButton in a hot/pressed state.

public BackgroundFill TabStripButtonHotPressedBackgroundFill { get; set; }

Property Value

BackgroundFill:

The BackgroundFill for a TabStripButton in a hot/pressed state.

TabStripButtonHotPressedBorder

Gets or sets the Border for a TabStripButton in a hot/pressed state.

public Border TabStripButtonHotPressedBorder { get; set; }

Property Value

Border:

The Border for a TabStripButton in a hot/pressed state.

TabStripButtonHotPressedOffset

Gets or sets the offset to apply to a TabStripButton in a hot/pressed state.

public virtual int TabStripButtonHotPressedOffset { get; set; }

Property Value

Int32:

The offset to apply to a TabStripButton in a hot/pressed state.

TabStripButtonNormalBackgroundFill

Gets or sets the BackgroundFill for a TabStripButton in a normal state.

public BackgroundFill TabStripButtonNormalBackgroundFill { get; set; }

Property Value

BackgroundFill:

The BackgroundFill for a TabStripButton in a normal state.

TabStripButtonNormalBorder

Gets or sets the Border for a TabStripButton in a normal state.

public Border TabStripButtonNormalBorder { get; set; }

Property Value

Border:

The Border for a TabStripButton in a normal state.

TabStripPageDefaultBackgroundFill

Gets or sets the BackgroundFill for a TabStripPage.

public BackgroundFill TabStripPageDefaultBackgroundFill { get; set; }

Property Value

BackgroundFill:

The BackgroundFill for a TabStripPage.

TabStripTabContainerBackgroundFill

Gets or sets the BackgroundFill for a TabStrip tab container.

public BackgroundFill TabStripTabContainerBackgroundFill { get; set; }

Property Value

BackgroundFill:

The BackgroundFill for a TabStrip tab container.

TabStripTabContainerBorderVisible

Gets or sets whether to draw the tab container border.

public virtual bool TabStripTabContainerBorderVisible { get; set; }

Property Value

Boolean:

true if the tab container border should be drawn; otherwise, false.

TabStripTabDisabledForeColor

Gets or sets the foreground color of a disabled TabStripTab.

public Color TabStripTabDisabledForeColor { get; set; }

Property Value

Color:

A Color object specifying the foreground color of a disabled TabStripTab.

TabStripTabSelectedBackgroundFill

Gets or sets the BackgroundFill for a selected TabStripTab.

public BackgroundFill TabStripTabSelectedBackgroundFill { get; set; }

Property Value

BackgroundFill:

The BackgroundFill for a selected TabStripTab.

TabStripTabSelectedBorderColor

Gets or sets the border color of a selected TabStripTab.

public Color TabStripTabSelectedBorderColor { get; set; }

Property Value

Color:

A Color object specifying the border color of a selected TabStripTab.

TabStripTabSelectedForeColor

Gets or sets the foreground color of a selected TabStripTab.

public Color TabStripTabSelectedForeColor { get; set; }

Property Value

Color:

A Color object specifying the foreground color of a selected TabStripTab.

TabStripTabTextStringTrimming

Gets or sets the StringTrimming to use when drawing text.

public virtual StringTrimming TabStripTabTextStringTrimming { get; set; }

Property Value

StringTrimming:

The StringTrimming to use when drawing text.

TabStripTabUnselectedBackgroundFill

Gets or sets the BackgroundFill for a unselected TabStripTab.

public BackgroundFill TabStripTabUnselectedBackgroundFill { get; set; }

Property Value

BackgroundFill:

The BackgroundFill for a unselected TabStripTab.

TabStripTabUnselectedBorderColor

Gets or sets the border color of a unselected TabStripTab.

public Color TabStripTabUnselectedBorderColor { get; set; }

Property Value

Color:

A Color object specifying the border color of a unselected TabStripTab.

TabStripTabUnselectedForeColor

Gets or sets the foreground color of a unselected TabStripTab.

public Color TabStripTabUnselectedForeColor { get; set; }

Property Value

Color:

A Color object specifying the foreground color of a unselected 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.

DrawTabStripButton(PaintEventArgs, Rectangle, TabStripButton)

Draws a TabStripButton.

public override void DrawTabStripButton(PaintEventArgs e, Rectangle bounds, TabStripButton button)
Parameter Type Description
e PaintEventArgs

A PaintEventArgs that contains the event data.

bounds Rectangle

The bounds in which to draw.

button TabStripButton

The TabStripButton that is being painted.

DrawTabStripPageBackground(PaintEventArgs, Rectangle, TabStripPage)

Draws the background of a TabStripPage control.

public override void DrawTabStripPageBackground(PaintEventArgs e, Rectangle bounds, TabStripPage tabStripPage)
Parameter Type Description
e PaintEventArgs

A PaintEventArgs that contains the event data.

bounds Rectangle

The bounds in which to draw.

tabStripPage TabStripPage

The TabStripPage 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.

ResetMatchBackgroundToParentForm()

Resets the MatchBackgroundToParentForm property to its default value.

public virtual void ResetMatchBackgroundToParentForm()

ResetResetAllPropertiesOnSystemColorChange()

Resets the ResetAllPropertiesOnSystemColorChange property to its default value.

public override void ResetResetAllPropertiesOnSystemColorChange()

ResetTabStripBackgroundFill()

Resets the TabStripBackgroundFill property to its default value.

public virtual void ResetTabStripBackgroundFill()

ResetTabStripButtonGlyphColor()

Resets the TabStripButtonGlyphColor property to its default value.

public virtual void ResetTabStripButtonGlyphColor()

ResetTabStripButtonHotBackgroundFill()

Resets the TabStripButtonHotBackgroundFill property to its default value.

public virtual void ResetTabStripButtonHotBackgroundFill()

ResetTabStripButtonHotBorder()

Resets the TabStripButtonHotBorder property to its default value.

public virtual void ResetTabStripButtonHotBorder()

ResetTabStripButtonHotPressedBackgroundFill()

Resets the TabStripButtonHotPressedBackgroundFill property to its default value.

public virtual void ResetTabStripButtonHotPressedBackgroundFill()

ResetTabStripButtonHotPressedBorder()

Resets the TabStripButtonHotPressedBorder property to its default value.

public virtual void ResetTabStripButtonHotPressedBorder()

ResetTabStripButtonHotPressedOffset()

Resets the TabStripButtonHotPressedOffset property to its default value.

public virtual void ResetTabStripButtonHotPressedOffset()

ResetTabStripButtonNormalBackgroundFill()

Resets the TabStripButtonNormalBackgroundFill property to its default value.

public virtual void ResetTabStripButtonNormalBackgroundFill()

ResetTabStripButtonNormalBorder()

Resets the TabStripButtonNormalBorder property to its default value.

public virtual void ResetTabStripButtonNormalBorder()

ResetTabStripPageDefaultBackgroundFill()

Resets the TabStripPageDefaultBackgroundFill property to its default value.

public virtual void ResetTabStripPageDefaultBackgroundFill()

ResetTabStripTabContainerBackgroundFill()

Resets the TabStripTabContainerBackgroundFill property to its default value.

public virtual void ResetTabStripTabContainerBackgroundFill()

ResetTabStripTabContainerBorderVisible()

Resets the TabStripTabContainerBorderVisible property to its default value.

public virtual void ResetTabStripTabContainerBorderVisible()

ResetTabStripTabDisabledForeColor()

Resets the TabStripTabDisabledForeColor property to its default value.

public virtual void ResetTabStripTabDisabledForeColor()

ResetTabStripTabIndent()

Resets the TabStripTabIndent property to its default value.

public override void ResetTabStripTabIndent()

ResetTabStripTabOverlap()

Resets the TabStripTabOverlap property to its default value.

public override void ResetTabStripTabOverlap()

ResetTabStripTabSelectedBackgroundFill()

Resets the TabStripTabSelectedBackgroundFill property to its default value.

public virtual void ResetTabStripTabSelectedBackgroundFill()

ResetTabStripTabSelectedBorderColor()

Resets the TabStripTabSelectedBorderColor property to its default value.

public virtual void ResetTabStripTabSelectedBorderColor()

ResetTabStripTabSelectedForeColor()

Resets the TabStripTabSelectedForeColor property to its default value.

public virtual void ResetTabStripTabSelectedForeColor()

ResetTabStripTabTextStringTrimming()

Resets the TabStripTabTextStringTrimming property to its default value.

public virtual void ResetTabStripTabTextStringTrimming()

ResetTabStripTabUnselectedBackgroundFill()

Resets the TabStripTabUnselectedBackgroundFill property to its default value.

public virtual void ResetTabStripTabUnselectedBackgroundFill()

ResetTabStripTabUnselectedBorderColor()

Resets the TabStripTabUnselectedBorderColor property to its default value.

public virtual void ResetTabStripTabUnselectedBorderColor()

ResetTabStripTabUnselectedForeColor()

Resets the TabStripTabUnselectedForeColor property to its default value.

public virtual void ResetTabStripTabUnselectedForeColor()

ShouldSerializeMatchBackgroundToParentForm()

Indicates whether the MatchBackgroundToParentForm property should be persisted.

public virtual bool ShouldSerializeMatchBackgroundToParentForm()

Returns

Boolean:

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

ShouldSerializeResetAllPropertiesOnSystemColorChange()

Indicates whether the ResetAllPropertiesOnSystemColorChange property should be persisted.

public override bool ShouldSerializeResetAllPropertiesOnSystemColorChange()

Returns

Boolean:

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

ShouldSerializeTabStripBackgroundFill()

Indicates whether the TabStripBackgroundFill property should be persisted.

public virtual bool ShouldSerializeTabStripBackgroundFill()

Returns

Boolean:

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

ShouldSerializeTabStripButtonGlyphColor()

Indicates whether the TabStripButtonGlyphColor property should be persisted.

public virtual bool ShouldSerializeTabStripButtonGlyphColor()

Returns

Boolean:

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

ShouldSerializeTabStripButtonHotBackgroundFill()

Indicates whether the TabStripButtonHotBackgroundFill property should be persisted.

public virtual bool ShouldSerializeTabStripButtonHotBackgroundFill()

Returns

Boolean:

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

ShouldSerializeTabStripButtonHotBorder()

Indicates whether the TabStripButtonHotBorder property should be persisted.

public virtual bool ShouldSerializeTabStripButtonHotBorder()

Returns

Boolean:

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

ShouldSerializeTabStripButtonHotPressedBackgroundFill()

Indicates whether the TabStripButtonHotPressedBackgroundFill property should be persisted.

public virtual bool ShouldSerializeTabStripButtonHotPressedBackgroundFill()

Returns

Boolean:

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

ShouldSerializeTabStripButtonHotPressedBorder()

Indicates whether the TabStripButtonHotPressedBorder property should be persisted.

public virtual bool ShouldSerializeTabStripButtonHotPressedBorder()

Returns

Boolean:

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

ShouldSerializeTabStripButtonHotPressedOffset()

Indicates whether the TabStripButtonHotPressedOffset property should be persisted.

public virtual bool ShouldSerializeTabStripButtonHotPressedOffset()

Returns

Boolean:

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

ShouldSerializeTabStripButtonNormalBackgroundFill()

Indicates whether the TabStripButtonNormalBackgroundFill property should be persisted.

public virtual bool ShouldSerializeTabStripButtonNormalBackgroundFill()

Returns

Boolean:

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

ShouldSerializeTabStripButtonNormalBorder()

Indicates whether the TabStripButtonNormalBorder property should be persisted.

public virtual bool ShouldSerializeTabStripButtonNormalBorder()

Returns

Boolean:

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

ShouldSerializeTabStripPageDefaultBackgroundFill()

Indicates whether the TabStripPageDefaultBackgroundFill property should be persisted.

public virtual bool ShouldSerializeTabStripPageDefaultBackgroundFill()

Returns

Boolean:

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

ShouldSerializeTabStripTabContainerBackgroundFill()

Indicates whether the TabStripTabContainerBackgroundFill property should be persisted.

public virtual bool ShouldSerializeTabStripTabContainerBackgroundFill()

Returns

Boolean:

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

ShouldSerializeTabStripTabContainerBorderVisible()

Indicates whether the TabStripTabContainerBorderVisible property should be persisted.

public virtual bool ShouldSerializeTabStripTabContainerBorderVisible()

Returns

Boolean:

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

ShouldSerializeTabStripTabDisabledForeColor()

Indicates whether the TabStripTabDisabledForeColor property should be persisted.

public virtual bool ShouldSerializeTabStripTabDisabledForeColor()

Returns

Boolean:

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

ShouldSerializeTabStripTabIndent()

Indicates whether the TabStripTabIndent property should be persisted.

public override bool ShouldSerializeTabStripTabIndent()

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 virtual 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 virtual 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 virtual bool ShouldSerializeTabStripTabSelectedForeColor()

Returns

Boolean:

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

ShouldSerializeTabStripTabTextStringTrimming()

Indicates whether the TabStripTabTextStringTrimming property should be persisted.

public virtual bool ShouldSerializeTabStripTabTextStringTrimming()

Returns

Boolean:

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

ShouldSerializeTabStripTabUnselectedBackgroundFill()

Indicates whether the TabStripTabUnselectedBackgroundFill property should be persisted.

public virtual 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 virtual 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 virtual bool ShouldSerializeTabStripTabUnselectedForeColor()

Returns

Boolean:

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

Inherited Members