NtFlankControl.OnPaint Method

Inherited from System.Windows.Forms.Control. Does the painting of the control's client area.

Overload List:

Modifier / Return Value Name and Parameters Description

protected override void

OnPaint ( PaintEventArgs pe )

Does the painting of the NtFlankControl.

Return value:

void

Parameters:

PaintEventArgs pe
The PaintEventArgs that contain the necessary information for painting. Mainly the ClipRect and the Graphics object.

Remarks:

The main task of this method is to draw the NtRowHeaders and the categories (if any).
When creating a derived class from NtFlankControl you can override this method to implement painting yourself. In general this is not recommended because drawing the NtRowHeaders depends on the categories and the row settings. This is pretty complex.
If you want to change the appearance of the NtRowHeaders you rather create those in accordance to your design (e.g. as bitmaps). This method will then draw them accordingly.

See also:

DrawLines()