NtTimeChartControl.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 NtTimeChartControl and all the visible data objects in it.

Return value:

void

Parameters:

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

Remarks:

When creating a derived class from NtTimeChartControl you can override this method to implement painting yourself. In general this is not recommended because drawing all the objects, category bars and the background is a highly optimized and fairly complex process.
If you want to implement the drawing of your objects by yourself, the technology of choice is to set up the NtDisplayDef objects (for those data types you want to draw by yourself) in a way that they have their displayMethod set to a value greater than 100. In this case the OnPaint method will call the interface CustomObjectPaint. You should then have this interface implemented so you can do the painting just for those object types you specified.
 
For more information please see the tutorial CustomObjectDrawing.

See also:

NtCustomObjectPaint
OnPaintBackground()