ToolStripProfessionalRenderer Constructors

Definition

Initializes a new instance of the ToolStripProfessionalRenderer class.

Overloads

ToolStripProfessionalRenderer()

Source:
ToolstripProfessionalRenderer.cs
Source:
ToolstripProfessionalRenderer.cs
Source:
ToolstripProfessionalRenderer.cs

Initializes a new instance of the ToolStripProfessionalRenderer class.

C#
public ToolStripProfessionalRenderer();

Examples

The following code example demonstrates how to create an instance of a class derived from the ToolStripProfessionalRenderer class. This code example is part of a larger example provided for the ToolStripProfessionalRenderer class.

C#
public StackView()
{
    this.InitializeComponent();

    // Assign icons to ToolStripButton controls.
    this.InitializeImages();

    // Set up renderers.
    this.stackStrip.Renderer = new StackRenderer();
}

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

ToolStripProfessionalRenderer(ProfessionalColorTable)

Source:
ToolstripProfessionalRenderer.cs
Source:
ToolstripProfessionalRenderer.cs
Source:
ToolstripProfessionalRenderer.cs

Initializes a new instance of the ToolStripProfessionalRenderer class.

C#
public ToolStripProfessionalRenderer(System.Windows.Forms.ProfessionalColorTable professionalColorTable);

Parameters

professionalColorTable
ProfessionalColorTable

A ProfessionalColorTable to be used for painting.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10