NtDisplayObjectEventArgs
In the NtTimeChartControl all data objects are of type NtDataObject. Meanwhile the optical representation of those data objects
that are currently visibe is done by NtDisplayObjects. These objects are the entities the user interacts with in terms of clicking, rising tooltips, dragging them etc.
Whenever certain activities happen on such a NtDisplayObject an according event is being raised. Such events are regular events and their event arguments are of type
myNtTimeChartControl.displayObjectDblClick += (s, eventArgs) => { NtDisplayObject ntdo = ((NtDisplayObjectEventArgs)eventArgs).displayObject; MessageBox.Show("DblClick:\r\n" + ntdo.GetText()); };
This code sippet catches the event, evaluates which Display Object rised the event and shows a message box. With that you can easily access the underlying data object like this:
NtDataObject d = ntdo.dataObject;
Class Hierarchy:

Constructors:
| Modifier | Name and Parameters | Description |
|---|---|---|
|
public |
|
The only constructor. It takes as a parameter the NtDisplayObject this event is for as well as eventual coordinates for mouse click events e.g. |
Methods and Properties:
| Modifier / Return Value | Name and Parameters | Description |
|---|---|---|
| public void |
|
Marks this event as cancelled. Inherited from NtCancelEventArgs. |
|
|
|
When catching this event you can access this member to find out which NtDisplayObject caused the event. |
|
|
|
The x coordinate of the event. For example if an event is fired by a mouse right click, you will get this as a coordinate. |
|
|
|
The y coordinate of the event. For example if an event is fired by a mouse right click, you will get this as a coordinate. |
See also:
