Edit

Share via


ToolStripItem.OnDisplayStyleChanged(EventArgs) Method

Definition

Raises the DisplayStyleChanged event.

protected:
 virtual void OnDisplayStyleChanged(EventArgs ^ e);
protected virtual void OnDisplayStyleChanged (EventArgs e);
abstract member OnDisplayStyleChanged : EventArgs -> unit
override this.OnDisplayStyleChanged : EventArgs -> unit
Protected Overridable Sub OnDisplayStyleChanged (e As EventArgs)

Parameters

e
EventArgs

An EventArgs that contains the event data.

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

The OnDisplayStyleChanged 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 OnDisplayStyleChanged(EventArgs) in a derived class, be sure to call the base class's OnDisplayStyleChanged(EventArgs) method so that registered delegates receive the event.

Applies to