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