NtCustomObjectPaint.NtCalculateTopAndBottomInRow Method
This interface method allows the NtTimeChartControl to get information about top and bottom of a custom NtDisplayObject.
When scaling the vertical position (Y-coordinate) and height (or top and bottom resp.) you should not base your calculations on the current row height (which you can get from the
NtTimeChartControl by calling its
Example:
Suppose from NtDisplayObject you derivated your own class
Both top and bottom values might as well be negative or greater than the current or preferred row height.
Overload List:
| Modifier / Return Value | Name and Parameters | Description |
|---|---|---|
| NtDisplayObject |
|
Implement this interface method to create a display object for the data object given. |
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.
The data object to do the calculation for.
The time scaling factor the NtTimeChartControl currently works with. It describes the time difference of two neighboring pixels in ticks. One tick
is 100 nano seconds.
The left edge of the NtDisplayObject in ticks. It is the first output parameter of this method.
The right edge of the NtDisplayObject in ticks. It is the second output parameter of this method.
Remarks:
None.
