ScrollBarRenderer Class
Provides a base renderer for the ScrollBar control.
public abstract class ScrollBarRenderer : DisposableObject, IScrollBarRenderer, IDisposable, IUIRenderer
- Inheritance:
- Object MarshalByRefObject DisposableObject Object
- Derived:
- WindowsXPScrollBarRenderer
- Implements:
- IScrollBarRenderer IDisposable IUIRenderer
Constructors
ScrollBarRenderer()
Initializes a new instance of the ScrollBarRenderer
class.
public ScrollBarRenderer()
Remarks
The default constructor initializes all fields to their default values.
Methods
DrawScrollBarBackground(PaintEventArgs, Rectangle, ScrollBar)
Draws the background of a ScrollBar control.
public abstract void DrawScrollBarBackground(PaintEventArgs e, Rectangle bounds, ScrollBar scrollBar)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
scrollBar | ScrollBar | The ScrollBar being painted. |
DrawScrollBarButton(PaintEventArgs, Rectangle, ScrollBarButton)
Draws a ScrollBarButton.
public abstract void DrawScrollBarButton(PaintEventArgs e, Rectangle bounds, ScrollBarButton button)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
button | ScrollBarButton | The ScrollBarButton that is being painted. |
DrawScrollBarThumb(PaintEventArgs, Rectangle, ScrollBarThumb)
Draws a ScrollBarThumb.
public abstract void DrawScrollBarThumb(PaintEventArgs e, Rectangle bounds, ScrollBarThumb thumb)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
thumb | ScrollBarThumb | The ScrollBarThumb that is 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 |
Events
PropertyChanged
Occurs after a property is changed.
Inherited Members
- DisposableObject.Dispose()
- DisposableObject.Dispose(Boolean)
- 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()