This topic has not yet been rated - Rate this topic

ToolStripSystemRenderer Class

Handles the painting functionality for ToolStrip objects, using system colors and a flat visual style.

System.Object
  System.Windows.Forms.ToolStripRenderer
    System.Windows.Forms.ToolStripSystemRenderer

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)
public class ToolStripSystemRenderer : ToolStripRenderer

The ToolStripSystemRenderer type exposes the following members.

  Name Description
Public method ToolStripSystemRenderer Initializes a new instance of the ToolStripSystemRenderer class.
Top
  Name Description
Public method DrawArrow Draws an arrow on a ToolStripItem. (Inherited from ToolStripRenderer.)
Public method DrawButtonBackground Draws the background for a ToolStripButton. (Inherited from ToolStripRenderer.)
Public method DrawDropDownButtonBackground Draws the background for a ToolStripDropDownButton. (Inherited from ToolStripRenderer.)
Public method DrawGrip Draws a move handle on a ToolStrip. (Inherited from ToolStripRenderer.)
Public method DrawImageMargin Draws the space around an image on a ToolStrip. (Inherited from ToolStripRenderer.)
Public method DrawItemBackground Draws the background for a ToolStripItem. (Inherited from ToolStripRenderer.)
Public method DrawItemCheck Draws an image on a ToolStripItem that indicates the item is in a selected state. (Inherited from ToolStripRenderer.)
Public method DrawItemImage Draws an image on a ToolStripItem. (Inherited from ToolStripRenderer.)
Public method DrawItemText Draws text on a ToolStripItem. (Inherited from ToolStripRenderer.)
Public method DrawLabelBackground Draws the background for a ToolStripLabel. (Inherited from ToolStripRenderer.)
Public method DrawMenuItemBackground Draws the background for a ToolStripMenuItem. (Inherited from ToolStripRenderer.)
Public method DrawOverflowButtonBackground Draws the background for an overflow button. (Inherited from ToolStripRenderer.)
Public method DrawSeparator Draws a ToolStripSeparator. (Inherited from ToolStripRenderer.)
Public method DrawSplitButton Draws a ToolStripSplitButton. (Inherited from ToolStripRenderer.)
Public method DrawStatusStripSizingGrip Draws a sizing grip. (Inherited from ToolStripRenderer.)
Public method DrawToolStripBackground Draws the background for a ToolStrip. (Inherited from ToolStripRenderer.)
Public method DrawToolStripBorder Draws the border for a ToolStrip. (Inherited from ToolStripRenderer.)
Public method DrawToolStripContentPanelBackground Draws the background of the ToolStripContentPanel. (Inherited from ToolStripRenderer.)
Public method DrawToolStripPanelBackground Draws the background of the ToolStripPanel. (Inherited from ToolStripRenderer.)
Public method DrawToolStripStatusLabelBackground Draws the background of the ToolStripStatusLabel. (Inherited from ToolStripRenderer.)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method Initialize When overridden in a derived class, provides for custom initialization of the given ToolStrip. (Inherited from ToolStripRenderer.)
Protected method InitializeContentPanel Initializes the specified ToolStripContentPanel. (Inherited from ToolStripRenderer.)
Protected method InitializeItem When overridden in a derived class, provides for custom initialization of the given ToolStripItem. (Inherited from ToolStripRenderer.)
Protected method InitializePanel Initializes the specified ToolStripPanel. (Inherited from ToolStripRenderer.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnRenderArrow Raises the RenderArrow event. (Inherited from ToolStripRenderer.)
Protected method OnRenderButtonBackground Raises the RenderButtonBackground event. (Overrides ToolStripRenderer.OnRenderButtonBackground(ToolStripItemRenderEventArgs).)
Protected method OnRenderDropDownButtonBackground Raises the RenderDropDownButtonBackground event. (Overrides ToolStripRenderer.OnRenderDropDownButtonBackground(ToolStripItemRenderEventArgs).)
Protected method OnRenderGrip Raises the RenderGrip event. (Overrides ToolStripRenderer.OnRenderGrip(ToolStripGripRenderEventArgs).)
Protected method OnRenderImageMargin Draws the item background. (Overrides ToolStripRenderer.OnRenderImageMargin(ToolStripRenderEventArgs).)
Protected method OnRenderItemBackground Raises the OnRenderItemBackground event. (Overrides ToolStripRenderer.OnRenderItemBackground(ToolStripItemRenderEventArgs).)
Protected method OnRenderItemCheck Raises the RenderItemCheck event. (Inherited from ToolStripRenderer.)
Protected method OnRenderItemImage Raises the RenderItemImage event. (Inherited from ToolStripRenderer.)
Protected method OnRenderItemText Raises the RenderItemText event. (Inherited from ToolStripRenderer.)
Protected method OnRenderLabelBackground Raises the RenderLabelBackground event. (Overrides ToolStripRenderer.OnRenderLabelBackground(ToolStripItemRenderEventArgs).)
Protected method OnRenderMenuItemBackground Raises the RenderMenuItemBackground event. (Overrides ToolStripRenderer.OnRenderMenuItemBackground(ToolStripItemRenderEventArgs).)
Protected method OnRenderOverflowButtonBackground Raises the RenderOverflowButtonBackground event. (Overrides ToolStripRenderer.OnRenderOverflowButtonBackground(ToolStripItemRenderEventArgs).)
Protected method OnRenderSeparator Raises the RenderSeparator event. (Overrides ToolStripRenderer.OnRenderSeparator(ToolStripSeparatorRenderEventArgs).)
Protected method OnRenderSplitButtonBackground Raises the OnRenderSplitButtonBackground event. (Overrides ToolStripRenderer.OnRenderSplitButtonBackground(ToolStripItemRenderEventArgs).)
Protected method OnRenderStatusStripSizingGrip Raises the RenderStatusStripSizingGrip event. (Inherited from ToolStripRenderer.)
Protected method OnRenderToolStripBackground Raises the RenderToolStripBackground event. (Overrides ToolStripRenderer.OnRenderToolStripBackground(ToolStripRenderEventArgs).)
Protected method OnRenderToolStripBorder Raises the RenderToolStripBorder event. (Overrides ToolStripRenderer.OnRenderToolStripBorder(ToolStripRenderEventArgs).)
Protected method OnRenderToolStripContentPanelBackground Raises the RenderToolStripContentPanelBackground event. (Inherited from ToolStripRenderer.)
Protected method OnRenderToolStripPanelBackground Raises the RenderToolStripPanelBackground event. (Inherited from ToolStripRenderer.)
Protected method OnRenderToolStripStatusLabelBackground Raises the RenderToolStripStatusLabelBackground event. (Overrides ToolStripRenderer.OnRenderToolStripStatusLabelBackground(ToolStripItemRenderEventArgs).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
  Name Description
Public event RenderArrow Occurs when an arrow on a ToolStripItem is rendered. (Inherited from ToolStripRenderer.)
Public event RenderButtonBackground Occurs when the background for a ToolStripButton is rendered (Inherited from ToolStripRenderer.)
Public event RenderDropDownButtonBackground Occurs when the background for a ToolStripDropDownButton is rendered. (Inherited from ToolStripRenderer.)
Public event RenderGrip Occurs when the move handle for a ToolStrip is rendered. (Inherited from ToolStripRenderer.)
Public event RenderImageMargin Draws the margin between an image and its container. (Inherited from ToolStripRenderer.)
Public event RenderItemBackground Occurs when the background for a ToolStripItem is rendered. (Inherited from ToolStripRenderer.)
Public event RenderItemCheck Occurs when the image for a selected ToolStripItem is rendered. (Inherited from ToolStripRenderer.)
Public event RenderItemImage Occurs when the image for a ToolStripItem is rendered. (Inherited from ToolStripRenderer.)
Public event RenderItemText Occurs when the text for a ToolStripItem is rendered. (Inherited from ToolStripRenderer.)
Public event RenderLabelBackground Occurs when the background for a ToolStripLabel is rendered. (Inherited from ToolStripRenderer.)
Public event RenderMenuItemBackground Occurs when the background for a ToolStripMenuItem is rendered. (Inherited from ToolStripRenderer.)
Public event RenderOverflowButtonBackground Occurs when the background for an overflow button is rendered. (Inherited from ToolStripRenderer.)
Public event RenderSeparator Occurs when a ToolStripSeparator is rendered. (Inherited from ToolStripRenderer.)
Public event RenderSplitButtonBackground Occurs when the background for a ToolStripSplitButton is rendered. (Inherited from ToolStripRenderer.)
Public event RenderStatusStripSizingGrip Occurs when the display style changes. (Inherited from ToolStripRenderer.)
Public event RenderToolStripBackground Occurs when the background for a ToolStrip is rendered. (Inherited from ToolStripRenderer.)
Public event RenderToolStripBorder Occurs when the border for a ToolStrip is rendered. (Inherited from ToolStripRenderer.)
Public event RenderToolStripContentPanelBackground Draws the background of a ToolStripContentPanel. (Inherited from ToolStripRenderer.)
Public event RenderToolStripPanelBackground Draws the background of a ToolStripPanel. (Inherited from ToolStripRenderer.)
Public event RenderToolStripStatusLabelBackground Draws the background of a ToolStripStatusLabel. (Inherited from ToolStripRenderer.)
Top

ToolStripSystemRenderer applies system colors and a flat visual style to ToolStrip applications.

By default, the ToolStripSystemRenderer applies a palette of SystemColors and visual styles, if visual styles are enabled for the application.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ