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 NtDisplayObjectEventArgs. For example, to catch the event of double clicking on a visible object, you can write a code snippet like this:
 

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:

System.EventArgs

NtCancelEventArgs

NtDisplayObjectEventArgs

Constructors:

Modifier Name and Parameters Description

public

NtDisplayObjectEventArgs ( NtDisplayObject displayObject,
int x, int y )

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 Cancel ( ) Marks this event as cancelled. Inherited from NtCancelEventArgs.
public NtDisplayObject displayObject When catching this event you can access this member to find out which NtDisplayObject caused the event.
public int x 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.
public int y 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:

NtCancelEventArgs