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:
trueif all properties should be reset; otherwise,false.
StatusBarGripperWidth
The width of a statusbar gripper.
StatusBarPadding
The padding inside of a statusbar.
StatusBarPanelActiveLinkColor
The color of active link text.
StatusBarPanelDefaultFont
The default Font to use when drawing statusbar panel text.
public virtual Font? StatusBarPanelDefaultFont { get; set; }
Property Value
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.
StatusBarPanelImageTextMargin
The margin between statusbar panel images and their text.
StatusBarPanelLinkColor
The color of link text.
StatusBarPanelMargin
The margin between statusbar panels.
StatusBarPanelVisitedLinkColor
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)
Draws the a 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:
trueif 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:
trueif 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:
trueif 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:
trueif 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:
trueif 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:
trueif 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:
trueif 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:
trueif 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:
trueif 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:
trueif the property value has changed from its default; otherwise,false.
Inherited Members
- UIRenderer.Dispose(bool)
- UIRenderer.Equals(object)
- UIRenderer.GetHashCode()
- UIRenderer.OnColorSchemeChanged()
- UIRenderer.OnPropertyChanged(EventArgs)
- UIRenderer.ColorScheme
- UIRenderer.IsSystemUserPreferenceColorChangeMonitored
- UIRenderer.PropertyChanged
- DisposableObjectBase.Dispose()
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object, object)
- object.ReferenceEquals(object, object)