Muokkaa

Jaa


ToolStripRenderer.OnRenderImageMargin(ToolStripRenderEventArgs) Method

Definition

Draws the item background.

protected:
 virtual void OnRenderImageMargin(System::Windows::Forms::ToolStripRenderEventArgs ^ e);
protected virtual void OnRenderImageMargin (System.Windows.Forms.ToolStripRenderEventArgs e);
abstract member OnRenderImageMargin : System.Windows.Forms.ToolStripRenderEventArgs -> unit
override this.OnRenderImageMargin : System.Windows.Forms.ToolStripRenderEventArgs -> unit
Protected Overridable Sub OnRenderImageMargin (e As ToolStripRenderEventArgs)

Parameters

e
ToolStripRenderEventArgs

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

Applies to