ToolStripRenderer::InitializeItem Method (ToolStripItem^)
.NET Framework (current version)
When overridden in a derived class, provides for custom initialization of the given ToolStripItem.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: