In This Article

VisualStudio2005StatusBarRenderer Class

Provides a renderer for StatusBar controls that have a Visual Studio 2005 appearance.

public class VisualStudio2005StatusBarRenderer : StatusBarRenderer, IDisposable, IStatusBarRenderer, IUIRenderer
Inheritance:
Object MarshalByRefObject DisposableObject StatusBarRenderer Object
Derived:
Office2003StatusBarRenderer
Implements:
IDisposable IStatusBarRenderer IUIRenderer

Constructors

VisualStudio2005StatusBarRenderer()

Initializes a new instance of the VisualStudio2005StatusBarRenderer class.

public VisualStudio2005StatusBarRenderer()

Remarks

The default constructor initializes all fields to their default values.

Properties

StatusBarPanelDefaultDisabledForeColor

Gets or sets the default disabled foreground color of statusbar panel text.

public Color StatusBarPanelDefaultDisabledForeColor { get; set; }

Property Value

Color:

A Color object specifying the default disabled foreground color of statusbar panel text.

StatusBarPanelDefaultForeColor

Gets or sets the default foreground color of statusbar panel text.

public Color StatusBarPanelDefaultForeColor { get; set; }

Property Value

Color:

A Color object specifying the default foreground color of statusbar panel text.

VisualStyleRenderer

Gets the VisualStyleRenderer in use by this renderer to draw Windows themes.

protected VisualStyleRenderer VisualStyleRenderer { get; }

Property Value

VisualStyleRenderer:

The VisualStyleRenderer in use by this renderer to draw Windows themes.

Methods

DrawStatusBarBackground(PaintEventArgs, Rectangle, StatusBar)

Draws the background of a StatusBar control.

public override void DrawStatusBarBackground(PaintEventArgs e, Rectangle bounds, StatusBar statusBar)
Parameter Type Description
e PaintEventArgs

A PaintEventArgs that contains the event data.

bounds Rectangle

The bounds in which to draw.

statusBar StatusBar

The StatusBar being painted.

DrawStatusBarGripper(PaintEventArgs, Rectangle, StatusBar)

Draws the gripper of a StatusBar control.

public override void DrawStatusBarGripper(PaintEventArgs e, Rectangle bounds, StatusBar statusBar)
Parameter Type Description
e PaintEventArgs

A PaintEventArgs that contains the event data.

bounds Rectangle

The bounds in which to draw.

statusBar StatusBar

The StatusBar being painted.

DrawStatusBarLabelPanel(PaintEventArgs, Rectangle, StatusBarLabelPanel)

Draws the a StatusBarLabelPanel.

public override void DrawStatusBarLabelPanel(PaintEventArgs e, Rectangle bounds, StatusBarLabelPanel panel)
Parameter Type Description
e PaintEventArgs

A PaintEventArgs that contains the event data.

bounds Rectangle

The bounds in which to draw.

panel StatusBarLabelPanel

The StatusBarLabelPanel being painted.

DrawStatusBarProgressBarPanel(PaintEventArgs, Rectangle, StatusBarProgressBarPanel)

public override void DrawStatusBarProgressBarPanel(PaintEventArgs e, Rectangle bounds, StatusBarProgressBarPanel panel)
Parameter Type Description
e PaintEventArgs

A PaintEventArgs that contains the event data.

bounds Rectangle

The bounds in which to draw.

panel StatusBarProgressBarPanel

The StatusBarProgressBarPanel being painted.

ResetAll(Boolean)

Resets all property values to their defaults.

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

Whether to force resetting.

ResetResetAllPropertiesOnSystemColorChange()

Resets the ResetAllPropertiesOnSystemColorChange property to its default value.

public override void ResetResetAllPropertiesOnSystemColorChange()

ResetStatusBarPadding()

Resets the StatusBarPadding property to its default value.

public override void ResetStatusBarPadding()

ResetStatusBarPanelDefaultDisabledForeColor()

Resets the StatusBarPanelDefaultDisabledForeColor property to its default value.

public virtual void ResetStatusBarPanelDefaultDisabledForeColor()

ResetStatusBarPanelDefaultForeColor()

Resets the StatusBarPanelDefaultForeColor property to its default value.

public virtual void ResetStatusBarPanelDefaultForeColor()

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.

ShouldSerializeStatusBarPadding()

Indicates whether the StatusBarPadding property should be persisted.

public override bool ShouldSerializeStatusBarPadding()

Returns

Boolean:

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

ShouldSerializeStatusBarPanelDefaultDisabledForeColor()

Indicates whether the StatusBarPanelDefaultDisabledForeColor property should be persisted.

public virtual bool ShouldSerializeStatusBarPanelDefaultDisabledForeColor()

Returns

Boolean:

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

ShouldSerializeStatusBarPanelDefaultForeColor()

Indicates whether the StatusBarPanelDefaultForeColor property should be persisted.

public virtual bool ShouldSerializeStatusBarPanelDefaultForeColor()

Returns

Boolean:

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

Inherited Members