ToolStrip.RenderMode Property

Gets or sets the painting styles to be applied to the ToolStrip.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public:
property ToolStripRenderMode RenderMode {
	ToolStripRenderMode get ();
	void set (ToolStripRenderMode value);
}
/** @property */
public ToolStripRenderMode get_RenderMode ()

/** @property */
public void set_RenderMode (ToolStripRenderMode value)

public function get RenderMode () : ToolStripRenderMode

public function set RenderMode (value : ToolStripRenderMode)

Not applicable.

Property Value

One of the ToolStripRenderMode values. The default is ManagerRenderMode.

Exception typeCondition

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 the RenderMode property to get or set ToolStrip painting styles.

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: