StatusBarRenderer Class
Provides a base renderer for the StatusBar control.
public abstract class StatusBarRenderer : DisposableObject, IDisposable, IStatusBarRenderer, IUIRenderer
- Inheritance:
- Object MarshalByRefObject DisposableObject Object
- Implements:
- IDisposable IStatusBarRenderer IUIRenderer
Constructors
StatusBarRenderer()
Initializes a new instance of the StatusBarRenderer
class.
public StatusBarRenderer()
Remarks
The default constructor initializes all fields to their default values.
Properties
DefaultRenderer
Gets a StatusBarRenderer that should be used based on the current system settings.
public static StatusBarRenderer DefaultRenderer { get; }
Property Value
- StatusBarRenderer:
A StatusBarRenderer that should be used based on the current system settings.
ResetAllPropertiesOnSystemColorChange
Gets or sets whether to reset all properties when a system color change event occurs.
public bool ResetAllPropertiesOnSystemColorChange { get; set; }
Property Value
- Boolean:
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
- Int32:
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
StatusBarPanelDefaultFont
Gets or sets the default Font to use when drawing statusbar panel text.
public virtual Font StatusBarPanelDefaultFont { get; set; }
Property Value
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
- Int32:
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
StatusBarPanelMargin
Gets or sets the margin between statusbar panels.
public int StatusBarPanelMargin { get; set; }
Property Value
- Int32:
The margin between statusbar panels.
StatusBarPanelVisitedLinkColor
Gets or sets the color of visited link text.
public Color StatusBarPanelVisitedLinkColor { get; set; }
Property Value
Methods
Dispose(Boolean)
Disposes any resources used by the object.
protected override void Dispose(bool disposing)
Parameter | Type | Description |
---|---|---|
disposing | Boolean | Whether the object is being disposed. |
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. |
Equals(Object)
Determines whether the specified Object
is equal to the current Object
.
public override bool Equals(object obj)
Parameter | Type | Description |
---|---|---|
obj | Object | The |
Returns
- Boolean:
true
if the specifiedObject
is equal to the currentObject
; otherwise,false
.
GetHashCode()
Returns a hash code for this object.
public override int GetHashCode()
Returns
- Int32:
An integer value that specifies a hash value for this object.
OnPropertyChanged(EventArgs)
Raises the PropertyChanged
event.
protected virtual void OnPropertyChanged(EventArgs e)
Parameter | Type | Description |
---|---|---|
e | EventArgs | An |
ResetAll(Boolean)
Resets all property values to their defaults.
protected virtual void ResetAll(bool force)
Parameter | Type | Description |
---|---|---|
force | Boolean | 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
- Boolean:
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
- Boolean:
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
- Boolean:
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
- Boolean:
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
- Boolean:
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
- Boolean:
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
- Boolean:
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
- Boolean:
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
- Boolean:
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
- Boolean:
true
if the property value has changed from its default; otherwise,false
.
Events
PropertyChanged
Occurs after a property is changed.
Inherited Members
- DisposableObject.Dispose()
- DisposableObject.VerifyNotDisposed()
- DisposableObject.IsDisposed
- DisposableObject.Disposed
- MarshalByRefObject.MemberwiseClone(Boolean)
- MarshalByRefObject.GetLifetimeService()
- MarshalByRefObject.InitializeLifetimeService()
- MarshalByRefObject.CreateObjRef(Type)
- Object.ToString()
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetType()
- Object.MemberwiseClone()