In This Article

VisualStudioClassicStatusBarRenderer Class

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

public class VisualStudioClassicStatusBarRenderer : StatusBarRenderer, IDisposable, IStatusBarRenderer, IUIRenderer
Inheritance:
object MarshalByRefObject DisposableObject UIRenderer StatusBarRenderer object
Derived:
OfficeClassicStatusBarRenderer
Implements:
IDisposable IStatusBarRenderer IUIRenderer

Constructors

VisualStudioClassicStatusBarRenderer()

Initializes a new instance of the class.

public VisualStudioClassicStatusBarRenderer()

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

Resets all property values to their defaults.

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

Whether to force resetting.

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()

ShouldSerializeStatusBarPanelDefaultDisabledForeColor()

Indicates whether the StatusBarPanelDefaultDisabledForeColor property should be persisted.

public virtual bool ShouldSerializeStatusBarPanelDefaultDisabledForeColor()

Returns

bool:

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

bool:

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

Inherited Members