[]
Paints the background of the element.
public virtual void OnPaintBackground(Graphics g, Rectangle rectInput)
Public Overridable Sub OnPaintBackground(g As Graphics, rectInput As Rectangle)
Paints the background of the control with an overriding style.
public virtual void OnPaintBackground(Graphics g, Rectangle rectInput, ElementStyle overrideStyle)
Public Overridable Sub OnPaintBackground(g As Graphics, rectInput As Rectangle, overrideStyle As ElementStyle)
Type | Name | Description |
---|---|---|
Graphics | g | Graphics device |
Rectangle | rectInput | Rectangle boundary of the area |
ElementStyle | overrideStyle | ElementStyle to use to override style |
Occurs when the background of the control is painted.
protected override void OnPaintBackground(PaintEventArgs e)
Protected Overrides Sub OnPaintBackground(e As PaintEventArgs)
Type | Name | Description |
---|---|---|
PaintEventArgs | e | PaintEventArgs object that contains event data |