NtCustomObjectPaint.NtPaintCustomObject Method
When you declare one or more data types to be drawn by your own code (this is called custom object drawing) then you need to implement this interface method. It is called by the NtTimeChartControl whenever drawing of one of the Display Objects is needed.
Overload List:
| Modifier / Return Value | Name and Parameters | Description |
|---|---|---|
| void |
|
Implement this interface method to do the drawing of customizd objects. |
Return value:
Parameters:
The NtTimeChartControl that does the call. Normally not used if you have only one NtTimeChartControl
in your Form or application. But if you have more than one NtTimeChartControl and implement this interface only onece, this parameter might be helpful.
NtDisplayObject displayObject
The data object to create a NtDisplayObject for.
This rectangle is the bounding rectangle of your Display Object in client area coordinates of the NtTimeChartControl. This means that you can directly use these
coordinates for drawing. For example if you want your Display Object to be a filled circle you can use this rectangle directly to draw the circle.
This rectangle is the area that actually needs painting. If the object has to be redrawn completely then this rectangle is the same as
The Graphics object of the NtTimeChartControl. This can be helpful for calculating text boundaries and sizes so you do not need to create a Graphics object
by yourself (which would be slow).
Remarks:
So why is the second rectangle
