API Documentation -> NtTimeChartControl -> displayObjectSelect

# NtTimeChartControl.displayObjectSelect Event

This event is being raised when a display object is being selected by the user via mouse click. This means that this event can occur only for visible data objects that are currently represented on the sheet by a NtDisplayObject. Other data objects, that are currently not drawn on the sheet can not be clicked by mouse and there will be no event.
It is important to understand that the selection state fits to the data object. This means that any data object can be selected at any time even if it is far out of the visible area. But selecting such and object always takes place by the application and never by the NtTimeChartControl itself, so there is no reason to fire an event as the application knows anyway.

Overload List:

Event Name | Event Arguments | Description
--- | --- | ---
displayObjectSelect | NtDisplayObjectEventArgs | Event raised when the user selects an object.

Event Arguments:

NtDisplayObjectEventArgs
The member displayObject references the object that has been selected. It is of type NtDisplayObject which by itself contains a member named dataObject which references to the data object. This gives you the best flexibility to work with the screen object that represents the object and that has been clicked or with the data object itself.

Remarks:

The event will be fired even if the selected Display Object was already selected before. As the NtTimeChartControl does not deselct an object in case a selected object is being clicked, you can catch the event and deselct the object on your own if you want.

See also:

displayObjectClick
displayObjectDblClick
displayObjectRightClick

Top API Documentation -> NtTimeChartControl -> displayObjectSelect © 2016 Bassaly