System.Windows.Forms.MenuItem.OnDrawItem Method

Raises the MenuItem.DrawItem event.

Syntax

protected virtual void OnDrawItem (DrawItemEventArgs e)

Parameters

e
A System.Windows.Forms.DrawItemEventArgs that contains the event data.

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0