|
|
|
|
OnItemClick Method, SftTree Class |
Raises the ItemClick event.
Syntax SftTree Class (Softelvdm.SftTreeNET)
VB |
Protected Overridable Sub OnItemClick( _ |
C# |
protected virtual void OnItemClick( |
C++ |
protected: virtual void OnItemClick( |
e
The event data.
reason
The reason code for this event.
Value |
Description |
|
0 | The size and position of visible objects is requested. | |
1 | Rendering is requested. | |
2 | A mouse button down event must be handled. | |
3 | A mouse button double-click must be handled. | |
4 | A mouse button release must be handled. | |
5 | A mouse cursor movement must be handled. | |
6 | The dimensions of an object are requested. |
Comments
The OnItemClick method raises the ItemClick event.
Raising an event invokes the event handler through a delegate.
The OnItemClick method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
When overriding OnItemClick in a derived class, make sure to call the base class's OnItemClick method so that registered delegates receive the event.