Export (0) Print
Expand All

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.

  NameDescription
Public methodToolStripSystemRendererInitializes a new instance of the ToolStripSystemRenderer class.
Top

  NameDescription
Public methodDrawArrowDraws an arrow on a ToolStripItem. (Inherited from ToolStripRenderer.)
Public methodDrawButtonBackgroundDraws the background for a ToolStripButton. (Inherited from ToolStripRenderer.)
Public methodDrawDropDownButtonBackgroundDraws the background for a ToolStripDropDownButton. (Inherited from ToolStripRenderer.)
Public methodDrawGripDraws a move handle on a ToolStrip. (Inherited from ToolStripRenderer.)
Public methodDrawImageMarginDraws the space around an image on a ToolStrip. (Inherited from ToolStripRenderer.)
Public methodDrawItemBackgroundDraws the background for a ToolStripItem. (Inherited from ToolStripRenderer.)
Public methodDrawItemCheckDraws an image on a ToolStripItem that indicates the item is in a selected state. (Inherited from ToolStripRenderer.)
Public methodDrawItemImageDraws an image on a ToolStripItem. (Inherited from ToolStripRenderer.)
Public methodDrawItemTextDraws text on a ToolStripItem. (Inherited from ToolStripRenderer.)
Public methodDrawLabelBackgroundDraws the background for a ToolStripLabel. (Inherited from ToolStripRenderer.)
Public methodDrawMenuItemBackgroundDraws the background for a ToolStripMenuItem. (Inherited from ToolStripRenderer.)
Public methodDrawOverflowButtonBackgroundDraws the background for an overflow button. (Inherited from ToolStripRenderer.)
Public methodDrawSeparatorDraws a ToolStripSeparator. (Inherited from ToolStripRenderer.)
Public methodDrawSplitButtonDraws a ToolStripSplitButton. (Inherited from ToolStripRenderer.)
Public methodDrawStatusStripSizingGripDraws a sizing grip. (Inherited from ToolStripRenderer.)
Public methodDrawToolStripBackgroundDraws the background for a ToolStrip. (Inherited from ToolStripRenderer.)
Public methodDrawToolStripBorderDraws the border for a ToolStrip. (Inherited from ToolStripRenderer.)
Public methodDrawToolStripContentPanelBackgroundDraws the background of the ToolStripContentPanel. (Inherited from ToolStripRenderer.)
Public methodDrawToolStripPanelBackgroundDraws the background of the ToolStripPanel. (Inherited from ToolStripRenderer.)
Public methodDrawToolStripStatusLabelBackgroundDraws the background of the ToolStripStatusLabel. (Inherited from ToolStripRenderer.)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodInitializeWhen overridden in a derived class, provides for custom initialization of the given ToolStrip. (Inherited from ToolStripRenderer.)
Protected methodInitializeContentPanelInitializes the specified ToolStripContentPanel. (Inherited from ToolStripRenderer.)
Protected methodInitializeItemWhen overridden in a derived class, provides for custom initialization of the given ToolStripItem. (Inherited from ToolStripRenderer.)
Protected methodInitializePanelInitializes the specified ToolStripPanel. (Inherited from ToolStripRenderer.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnRenderArrowRaises the RenderArrow event. (Inherited from ToolStripRenderer.)
Protected methodOnRenderButtonBackgroundRaises the RenderButtonBackground event. (Overrides ToolStripRenderer.OnRenderButtonBackground(ToolStripItemRenderEventArgs).)
Protected methodOnRenderDropDownButtonBackgroundRaises the RenderDropDownButtonBackground event. (Overrides ToolStripRenderer.OnRenderDropDownButtonBackground(ToolStripItemRenderEventArgs).)
Protected methodOnRenderGripRaises the RenderGrip event. (Overrides ToolStripRenderer.OnRenderGrip(ToolStripGripRenderEventArgs).)
Protected methodOnRenderImageMarginDraws the item background. (Overrides ToolStripRenderer.OnRenderImageMargin(ToolStripRenderEventArgs).)
Protected methodOnRenderItemBackgroundRaises the OnRenderItemBackground event. (Overrides ToolStripRenderer.OnRenderItemBackground(ToolStripItemRenderEventArgs).)
Protected methodOnRenderItemCheckRaises the RenderItemCheck event. (Inherited from ToolStripRenderer.)
Protected methodOnRenderItemImageRaises the RenderItemImage event. (Inherited from ToolStripRenderer.)
Protected methodOnRenderItemTextRaises the RenderItemText event. (Inherited from ToolStripRenderer.)
Protected methodOnRenderLabelBackgroundRaises the RenderLabelBackground event. (Overrides ToolStripRenderer.OnRenderLabelBackground(ToolStripItemRenderEventArgs).)
Protected methodOnRenderMenuItemBackgroundRaises the RenderMenuItemBackground event. (Overrides ToolStripRenderer.OnRenderMenuItemBackground(ToolStripItemRenderEventArgs).)
Protected methodOnRenderOverflowButtonBackgroundRaises the RenderOverflowButtonBackground event. (Overrides ToolStripRenderer.OnRenderOverflowButtonBackground(ToolStripItemRenderEventArgs).)
Protected methodOnRenderSeparatorRaises the RenderSeparator event. (Overrides ToolStripRenderer.OnRenderSeparator(ToolStripSeparatorRenderEventArgs).)
Protected methodOnRenderSplitButtonBackgroundRaises the OnRenderSplitButtonBackground event. (Overrides ToolStripRenderer.OnRenderSplitButtonBackground(ToolStripItemRenderEventArgs).)
Protected methodOnRenderStatusStripSizingGripRaises the RenderStatusStripSizingGrip event. (Inherited from ToolStripRenderer.)
Protected methodOnRenderToolStripBackgroundRaises the RenderToolStripBackground event. (Overrides ToolStripRenderer.OnRenderToolStripBackground(ToolStripRenderEventArgs).)
Protected methodOnRenderToolStripBorderRaises the RenderToolStripBorder event. (Overrides ToolStripRenderer.OnRenderToolStripBorder(ToolStripRenderEventArgs).)
Protected methodOnRenderToolStripContentPanelBackgroundRaises the RenderToolStripContentPanelBackground event. (Inherited from ToolStripRenderer.)
Protected methodOnRenderToolStripPanelBackgroundRaises the RenderToolStripPanelBackground event. (Inherited from ToolStripRenderer.)
Protected methodOnRenderToolStripStatusLabelBackgroundRaises the RenderToolStripStatusLabelBackground event. (Overrides ToolStripRenderer.OnRenderToolStripStatusLabelBackground(ToolStripItemRenderEventArgs).)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public eventRenderArrowOccurs when an arrow on a ToolStripItem is rendered. (Inherited from ToolStripRenderer.)
Public eventRenderButtonBackgroundOccurs when the background for a ToolStripButton is rendered (Inherited from ToolStripRenderer.)
Public eventRenderDropDownButtonBackgroundOccurs when the background for a ToolStripDropDownButton is rendered. (Inherited from ToolStripRenderer.)
Public eventRenderGripOccurs when the move handle for a ToolStrip is rendered. (Inherited from ToolStripRenderer.)
Public eventRenderImageMarginDraws the margin between an image and its container. (Inherited from ToolStripRenderer.)
Public eventRenderItemBackgroundOccurs when the background for a ToolStripItem is rendered. (Inherited from ToolStripRenderer.)
Public eventRenderItemCheckOccurs when the image for a selected ToolStripItem is rendered. (Inherited from ToolStripRenderer.)
Public eventRenderItemImageOccurs when the image for a ToolStripItem is rendered. (Inherited from ToolStripRenderer.)
Public eventRenderItemTextOccurs when the text for a ToolStripItem is rendered. (Inherited from ToolStripRenderer.)
Public eventRenderLabelBackgroundOccurs when the background for a ToolStripLabel is rendered. (Inherited from ToolStripRenderer.)
Public eventRenderMenuItemBackgroundOccurs when the background for a ToolStripMenuItem is rendered. (Inherited from ToolStripRenderer.)
Public eventRenderOverflowButtonBackgroundOccurs when the background for an overflow button is rendered. (Inherited from ToolStripRenderer.)
Public eventRenderSeparatorOccurs when a ToolStripSeparator is rendered. (Inherited from ToolStripRenderer.)
Public eventRenderSplitButtonBackgroundOccurs when the background for a ToolStripSplitButton is rendered. (Inherited from ToolStripRenderer.)
Public eventRenderStatusStripSizingGripOccurs when the display style changes. (Inherited from ToolStripRenderer.)
Public eventRenderToolStripBackgroundOccurs when the background for a ToolStrip is rendered. (Inherited from ToolStripRenderer.)
Public eventRenderToolStripBorderOccurs when the border for a ToolStrip is rendered. (Inherited from ToolStripRenderer.)
Public eventRenderToolStripContentPanelBackgroundDraws the background of a ToolStripContentPanel. (Inherited from ToolStripRenderer.)
Public eventRenderToolStripPanelBackgroundDraws the background of a ToolStripPanel. (Inherited from ToolStripRenderer.)
Public eventRenderToolStripStatusLabelBackgroundDraws 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.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Show:
© 2014 Microsoft