The event handler receives an argument of type System.Windows.Forms.ToolStripRenderEventArgs containing data related to this event. The following ToolStripRenderEventArgs properties provide information specific to this event.
Property | Description |
---|---|
AffectedBounds | Gets the System.Drawing.Rectangle representing the bounds of the area to be painted. |
BackColor | Gets the System.Drawing.Color that the background of the System.Windows.Forms.ToolStrip is painted with. |
ConnectedArea | Gets the System.Drawing.Rectangle representing the overlap area between a System.Windows.Forms.ToolStripDropDown and its System.Windows.Forms.ToolStripDropDown.OwnerItem. |
Graphics | Gets the System.Drawing.Graphics used to paint. |
ToolStrip | Gets the System.Windows.Forms.ToolStrip to be painted. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2