In This Article

StatusBarRenderer Class

Provides a base renderer for the StatusBar control.

[TypeConverter(typeof(GenericExpandableNullableObjectConverter))]
public abstract class StatusBarRenderer : UIRenderer, IDisposable, IStatusBarRenderer, IUIRenderer
Inheritance:
object MarshalByRefObject DisposableObject UIRenderer object
Derived:
MetroStatusBarRenderer VisualStudioClassicStatusBarRenderer WindowsClassicStatusBarRenderer
Implements:
IDisposable IStatusBarRenderer IUIRenderer

Constructors

StatusBarRenderer()

Initializes a new instance of the StatusBarRenderer class using the default color scheme.

public StatusBarRenderer()

Remarks

The default constructor initializes all fields to their default values.

StatusBarRenderer(IWindowsColorScheme)

Initializes a new instance of the StatusBarRenderer class.

protected StatusBarRenderer(IWindowsColorScheme colorScheme)
Parameter Type Description
colorScheme IWindowsColorScheme

The IWindowsColorScheme to use as a base for the colors.

Remarks

The default constructor initializes all fields to their default values.

Properties

ResetAllPropertiesOnSystemColorChange

Gets or sets whether to reset all properties when a system color change event occurs.

public bool ResetAllPropertiesOnSystemColorChange { get; set; }

Property Value

bool:

true if all properties should be reset; otherwise, false.

StatusBarGripperWidth

Gets or sets the width of a statusbar gripper.

public int StatusBarGripperWidth { get; set; }

Property Value

int:

The width of a statusbar gripper.

StatusBarPadding

Gets or sets the padding inside of a statusbar.

public Padding StatusBarPadding { get; set; }

Property Value

Padding:

The padding inside of a statusbar.

StatusBarPanelActiveLinkColor

Gets or sets the color of active link text.

public Color StatusBarPanelActiveLinkColor { get; set; }

Property Value

Color:

A Color object specifying the color of active link text.

StatusBarPanelDefaultFont

Gets or sets the default Font to use when drawing statusbar panel text.

public virtual Font StatusBarPanelDefaultFont { get; set; }

Property Value

Font:

The default Font to use when drawing statusbar panel text.

StatusBarPanelImageDefaultSize

Gets or sets the default size of a statusbar panel image, which is used when sizing to fit.

public Size StatusBarPanelImageDefaultSize { get; set; }

Property Value

Size:

The default size of a statusbar panel image, which is used when sizing to fit.

StatusBarPanelImageTextMargin

Gets or sets the margin between statusbar panel images and their text.

public int StatusBarPanelImageTextMargin { get; set; }

Property Value

int:

The margin between statusbar panel images and their text.

StatusBarPanelLinkColor

Gets or sets the color of link text.

public Color StatusBarPanelLinkColor { get; set; }

Property Value

Color:

A Color object specifying the color of link text.

StatusBarPanelMargin

Gets or sets the margin between statusbar panels.

public int StatusBarPanelMargin { get; set; }

Property Value

int:

The margin between statusbar panels.

StatusBarPanelVisitedLinkColor

Gets or sets the color of visited link text.

public Color StatusBarPanelVisitedLinkColor { get; set; }

Property Value

Color:

A Color object specifying the color of visited link text.

Methods

DrawStatusBarBackground(PaintEventArgs, Rectangle, StatusBar)

Draws the background of a StatusBar control.

public abstract 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 abstract 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 abstract 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 abstract 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.

OnSystemUserPreferenceColorChanged()

Occurs when user preferences are changed for the color category.

protected override void OnSystemUserPreferenceColorChanged()

Remarks

This method will only be invoked if IsSystemUserPreferenceColorChangeMonitored returns true.

ResetAll(bool)

Resets all property values to their defaults.

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

Whether to force resetting.

ResetResetAllPropertiesOnSystemColorChange()

Resets the ResetAllPropertiesOnSystemColorChange property to its default value.

public virtual void ResetResetAllPropertiesOnSystemColorChange()

ResetStatusBarGripperWidth()

Resets the StatusBarGripperWidth property to its default value.

public virtual void ResetStatusBarGripperWidth()

ResetStatusBarPadding()

Resets the StatusBarPadding property to its default value.

public virtual void ResetStatusBarPadding()

ResetStatusBarPanelActiveLinkColor()

Resets the StatusBarPanelActiveLinkColor property to its default value.

public virtual void ResetStatusBarPanelActiveLinkColor()

ResetStatusBarPanelDefaultFont()

Resets the StatusBarPanelDefaultFont property to its default value.

public virtual void ResetStatusBarPanelDefaultFont()

ResetStatusBarPanelImageDefaultSize()

Resets the StatusBarPanelImageDefaultSize property to its default value.

public virtual void ResetStatusBarPanelImageDefaultSize()

ResetStatusBarPanelImageTextMargin()

Resets the StatusBarPanelImageTextMargin property to its default value.

public virtual void ResetStatusBarPanelImageTextMargin()

ResetStatusBarPanelLinkColor()

Resets the StatusBarPanelLinkColor property to its default value.

public virtual void ResetStatusBarPanelLinkColor()

ResetStatusBarPanelMargin()

Resets the StatusBarPanelMargin property to its default value.

public virtual void ResetStatusBarPanelMargin()

ResetStatusBarPanelVisitedLinkColor()

Resets the StatusBarPanelVisitedLinkColor property to its default value.

public virtual void ResetStatusBarPanelVisitedLinkColor()

ShouldSerializeResetAllPropertiesOnSystemColorChange()

Indicates whether the ResetAllPropertiesOnSystemColorChange property should be persisted.

public virtual bool ShouldSerializeResetAllPropertiesOnSystemColorChange()

Returns

bool:

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

ShouldSerializeStatusBarGripperWidth()

Indicates whether the StatusBarGripperWidth property should be persisted.

public virtual bool ShouldSerializeStatusBarGripperWidth()

Returns

bool:

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

ShouldSerializeStatusBarPadding()

Indicates whether the StatusBarPadding property should be persisted.

public virtual bool ShouldSerializeStatusBarPadding()

Returns

bool:

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

ShouldSerializeStatusBarPanelActiveLinkColor()

Indicates whether the StatusBarPanelActiveLinkColor property should be persisted.

public virtual bool ShouldSerializeStatusBarPanelActiveLinkColor()

Returns

bool:

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

ShouldSerializeStatusBarPanelDefaultFont()

Indicates whether the StatusBarPanelDefaultFont property should be persisted.

public virtual bool ShouldSerializeStatusBarPanelDefaultFont()

Returns

bool:

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

ShouldSerializeStatusBarPanelImageDefaultSize()

Indicates whether the StatusBarPanelImageDefaultSize property should be persisted.

public virtual bool ShouldSerializeStatusBarPanelImageDefaultSize()

Returns

bool:

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

ShouldSerializeStatusBarPanelImageTextMargin()

Indicates whether the StatusBarPanelImageTextMargin property should be persisted.

public virtual bool ShouldSerializeStatusBarPanelImageTextMargin()

Returns

bool:

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

ShouldSerializeStatusBarPanelLinkColor()

Indicates whether the StatusBarPanelLinkColor property should be persisted.

public virtual bool ShouldSerializeStatusBarPanelLinkColor()

Returns

bool:

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

ShouldSerializeStatusBarPanelMargin()

Indicates whether the StatusBarPanelMargin property should be persisted.

public virtual bool ShouldSerializeStatusBarPanelMargin()

Returns

bool:

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

ShouldSerializeStatusBarPanelVisitedLinkColor()

Indicates whether the StatusBarPanelVisitedLinkColor property should be persisted.

public virtual bool ShouldSerializeStatusBarPanelVisitedLinkColor()

Returns

bool:

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

Inherited Members