ToolStripRenderer::InitializeItem Method (ToolStripItem^)

 

When overridden in a derived class, provides for custom initialization of the given ToolStripItem.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public protected:
virtual void InitializeItem(
	ToolStripItem^ item
)

Parameters

item
Type: System.Windows.Forms::ToolStripItem^

The ToolStripItem to be initialized.

Use the InitializeItem method to set properties, such as the ToolStripItem::BackColor or ToolStripItem::Font, when a ToolStripItem is rendered.

The following code example demonstrates how to initialize individual ToolStripItem controls. This code example is part of a larger example provided for the ToolStripRenderer class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: