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 DisposableObjectBase UIRenderer object
Derived:
MetroStatusBarRenderer VisualStudioClassicStatusBarRenderer WindowsClassicStatusBarRenderer
Implements:
IDisposable IStatusBarRenderer IUIRenderer

Constructors

StatusBarRenderer()

Initializes an instance of the class using the default color scheme.

public StatusBarRenderer()

StatusBarRenderer(IWindowsColorScheme)

Initializes an instance of the class.

protected StatusBarRenderer(IWindowsColorScheme colorScheme)
Parameter Type Description
colorScheme IWindowsColorScheme

The IWindowsColorScheme to use as a base for the colors.

Properties

ResetAllPropertiesOnSystemColorChange

Indicates 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

The width of a statusbar gripper.

public int StatusBarGripperWidth { get; set; }

Property Value

int

StatusBarPadding

The padding inside of a statusbar.

public Padding StatusBarPadding { get; set; }

Property Value

Padding

StatusBarPanelActiveLinkColor

The color of active link text.

public Color StatusBarPanelActiveLinkColor { get; set; }

Property Value

Color

StatusBarPanelDefaultFont

The default Font to use when drawing statusbar panel text.

public virtual Font? StatusBarPanelDefaultFont { get; set; }

Property Value

Font

Remarks

When null, text may not be rendered or a default system font may be used.

StatusBarPanelImageDefaultSize

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

public Size StatusBarPanelImageDefaultSize { get; set; }

Property Value

Size

StatusBarPanelImageTextMargin

The margin between statusbar panel images and their text.

public int StatusBarPanelImageTextMargin { get; set; }

Property Value

int

StatusBarPanelLinkColor

The color of link text.

public Color StatusBarPanelLinkColor { get; set; }

Property Value

Color

StatusBarPanelMargin

The margin between statusbar panels.

public int StatusBarPanelMargin { get; set; }

Property Value

int

StatusBarPanelVisitedLinkColor

The color of visited link text.

public Color StatusBarPanelVisitedLinkColor { get; set; }

Property Value

Color

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

Extension Methods