ToolStripProfessionalRenderer Class
Handles the painting functionality for ToolStrip objects, applying a custom palette and a streamlined style.
System.Windows.Forms::ToolStripRenderer
System.Windows.Forms::ToolStripProfessionalRenderer
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The ToolStripProfessionalRenderer type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ToolStripProfessionalRenderer() | Initializes a new instance of the ToolStripProfessionalRenderer class. |
![]() | ToolStripProfessionalRenderer(ProfessionalColorTable) | Initializes a new instance of the ToolStripProfessionalRenderer class. |
| Name | Description | |
|---|---|---|
![]() | ColorTable | Gets the color palette used for painting. |
![]() | RoundedEdges | Gets or sets a value indicating whether edges of controls have a rounded rather than a square or sharp appearance. |
| Name | Description | |
|---|---|---|
![]() | RenderArrow | Occurs when an arrow on a ToolStripItem is rendered. (Inherited from ToolStripRenderer.) |
![]() | RenderButtonBackground | Occurs when the background for a ToolStripButton is rendered (Inherited from ToolStripRenderer.) |
![]() | RenderDropDownButtonBackground | Occurs when the background for a ToolStripDropDownButton is rendered. (Inherited from ToolStripRenderer.) |
![]() | RenderGrip | Occurs when the move handle for a ToolStrip is rendered. (Inherited from ToolStripRenderer.) |
![]() | RenderImageMargin | Draws the margin between an image and its container. (Inherited from ToolStripRenderer.) |
![]() | RenderItemBackground | Occurs when the background for a ToolStripItem is rendered. (Inherited from ToolStripRenderer.) |
![]() | RenderItemCheck | Occurs when the image for a selected ToolStripItem is rendered. (Inherited from ToolStripRenderer.) |
![]() | RenderItemImage | Occurs when the image for a ToolStripItem is rendered. (Inherited from ToolStripRenderer.) |
![]() | RenderItemText | Occurs when the text for a ToolStripItem is rendered. (Inherited from ToolStripRenderer.) |
![]() | RenderLabelBackground | Occurs when the background for a ToolStripLabel is rendered. (Inherited from ToolStripRenderer.) |
![]() | RenderMenuItemBackground | Occurs when the background for a ToolStripMenuItem is rendered. (Inherited from ToolStripRenderer.) |
![]() | RenderOverflowButtonBackground | Occurs when the background for an overflow button is rendered. (Inherited from ToolStripRenderer.) |
![]() | RenderSeparator | Occurs when a ToolStripSeparator is rendered. (Inherited from ToolStripRenderer.) |
![]() | RenderSplitButtonBackground | Occurs when the background for a ToolStripSplitButton is rendered. (Inherited from ToolStripRenderer.) |
![]() | RenderStatusStripSizingGrip | Occurs when the display style changes. (Inherited from ToolStripRenderer.) |
![]() | RenderToolStripBackground | Occurs when the background for a ToolStrip is rendered. (Inherited from ToolStripRenderer.) |
![]() | RenderToolStripBorder | Occurs when the border for a ToolStrip is rendered. (Inherited from ToolStripRenderer.) |
![]() | RenderToolStripContentPanelBackground | Draws the background of a ToolStripContentPanel. (Inherited from ToolStripRenderer.) |
![]() | RenderToolStripPanelBackground | Draws the background of a ToolStripPanel. (Inherited from ToolStripRenderer.) |
![]() | RenderToolStripStatusLabelBackground | Draws the background of a ToolStripStatusLabel. (Inherited from ToolStripRenderer.) |
ToolStripProfessionalRenderer creates pens and brushes based on a replaceable color table called ProfessionalColorTable.
The following code example demonstrates how to create a composite control that mimics the Navigation Pane provided by Microsoft® Outlook®. For a full code listing, see How to: Create a Professionally Styled ToolStrip Control.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
