[]
        
(Showing Draft Content)

FarPoint.Win.ElementContainerControl.OnPaintBackground

OnPaintBackground Method

OnPaintBackground(Graphics, Rectangle)

Paints the background of the control.

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

Graphics object

Rectangle rectInput

Coordinates of the control to paint

OnPaintBackground(Graphics, Rectangle, ElementStyle)

Paints the background of the control with an overriding style.

Declaration
public virtual void OnPaintBackground(Graphics g, Rectangle rectInput, ElementStyle overrideStyle)
Public Overridable Sub OnPaintBackground(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

OnPaintBackground(PaintEventArgs)

Occurs when the control has been asked to repaint itself.

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

Event arguments

Overrides