[]
Raises the Paint event when the element has been asked 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 (both 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 device |
Rectangle | rectInput | Rectangle boundary of the area |
ElementStyle | overrideStyle | ElementStyle to use as style |
Paints the control (text and picture).
public virtual void OnPaint(Graphics g, Rectangle rectInput)
Public Overridable Sub OnPaint(g As Graphics, rectInput As Rectangle)