VitNX_MenuRenderer.InitializeItem Method
When overridden in a derived class, provides for custom initialization of the given ToolStripItem.
This language is not supported or no code example is available.
Parameters
-
item
-
ToolStripItem
The ToolStripItem to be initialized.
protected override void InitializeItem(ToolStripItem item)
{
base.InitializeItem(item);
item.BackColor = Colors.GreyBackground;
item.ForeColor = Colors.LightText;
if (item.GetType() == typeof(ToolStripSeparator))
item.Margin = new Padding(0, 0, 0, 1);
}
This language is not supported or no code example is available.
.NET Framework
Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
.NET Core
Supported in: 5.0+, 6.0+