[]
        
(Showing Draft Content)

FarPoint.Win.ElementContainerControl.OnPaint

OnPaint Method

OnPaint(PaintEventArgs)

Occurs when the element asks to repaint itself.

Declaration
protected override void OnPaint(PaintEventArgs e)
Protected Overrides Sub OnPaint(e As PaintEventArgs)
Parameters
Type Name Description
PaintEventArgs e

Event arguments

Overrides

OnPaint(Graphics, Rectangle, ElementStyle)

Paints the control (text and picture) with an overriding style.

Declaration
public virtual void OnPaint(Graphics g, Rectangle rectInput, ElementStyle overrideStyle)
Public Overridable Sub OnPaint(g As Graphics, rectInput As Rectangle, overrideStyle As ElementStyle)
Parameters
Type Name Description
Graphics g

Graphics object

Rectangle rectInput

Coordinates of the control to paint

ElementStyle overrideStyle

ElementStyle to use when painting

OnPaint(Graphics, Rectangle)

Paints the control (text and picture).

Declaration
public virtual void OnPaint(Graphics g, Rectangle rectInput)
Public Overridable Sub OnPaint(g As Graphics, rectInput As Rectangle)
Parameters
Type Name Description
Graphics g

Graphics object

Rectangle rectInput

Coordinates of the control to paint