Skybound Rebar

RebarBand.OnDrawButton Method 

Raises the DrawButton event.

[Visual Basic]
Overridable Protected Sub OnDrawButton( _
   ByVal e As DrawButtonEventArgs _
)
[C#]
protected virtual void OnDrawButton(
   DrawButtonEventArgs e
);

Parameters

e
A DrawButtonEventArgs that contains the event data.

Remarks

The OnDrawButton 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.

Notes to Inheritors: When overriding OnDrawButton in a derived class, be sure to call the base class's OnDrawButton method so that registered delegates receive the event.

See Also

RebarBand Class | Skybound.Rebar Namespace