[]
        
(Showing Draft Content)

FarPoint.Win.ElementControl.OnPaint

OnPaint Method

OnPaint(PaintEventArgs)

Raises the Paint event when the element has been asked 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 (both 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 device

Rectangle rectInput

Rectangle boundary of the area

ElementStyle overrideStyle

ElementStyle to use as style

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 device

Rectangle rectInput

Rectangle boundary of the area