ToolStrip.RenderMode Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a value that indicates which visual styles will be applied to the ToolStrip.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

member RenderMode : ToolStripRenderMode with get, set

Property Value

Type: System.Windows.Forms.ToolStripRenderMode

A value that indicates the visual style to apply. The default is ManagerRenderMode.

Exception Condition
InvalidEnumArgumentException

The value being set is not one of the ToolStripRenderMode values.

NotSupportedException

ToolStripRenderMode is set to Custom without the Renderer property being assigned to a new instance of ToolStripRenderer.

Use this property to indicate which set of visual styles the ToolStrip will use. You can use this property to specify a professional rendering style, a default system rendering style, or a style managed by the Renderer property value.

The following code example demonstrates the syntax for setting common ToolStrip properties, including the RenderMode property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: