|
|
|
|
OnItemReleased Method, SftTree Class |
Raises the ItemReleased event.
Syntax SftTree Class (Softelvdm.SftTreeNET)
VB |
Protected Overridable Sub OnItemReleased( _ |
C# |
protected virtual void OnItemReleased( |
C++ |
protected: virtual void OnItemReleased( |
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 OnItemReleased method raises the ItemReleased event.
Raising an event invokes the event handler through a delegate.
The OnItemReleased 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 OnItemReleased in a derived class, make sure to call the base class's OnItemReleased method so that registered delegates receive the event.