[]
Occurs when the element asks to repaint itself.
protected override void OnPaint(PaintEventArgs e)
Protected Overrides Sub OnPaint(e As PaintEventArgs)
Type | Name | Description |
---|---|---|
PaintEventArgs | e | Event arguments |
Paints the control (text and picture) with an overriding style.
public virtual void OnPaint(Graphics g, Rectangle rectInput, ElementStyle overrideStyle)
Public Overridable Sub OnPaint(g As Graphics, rectInput As Rectangle, overrideStyle As ElementStyle)
Type | Name | Description |
---|---|---|
Graphics | g | Graphics object |
Rectangle | rectInput | Coordinates of the control to paint |
ElementStyle | overrideStyle | ElementStyle to use when painting |
Paints the control (text and picture).
public virtual void OnPaint(Graphics g, Rectangle rectInput)
Public Overridable Sub OnPaint(g As Graphics, rectInput As Rectangle)
Type | Name | Description |
---|---|---|
Graphics | g | Graphics object |
Rectangle | rectInput | Coordinates of the control to paint |