ToolStripSplitButton Constructors

Definition

Initializes a new instance of the ToolStripSplitButton class.

Overloads

ToolStripSplitButton()

Initializes a new instance of the ToolStripSplitButton class.

ToolStripSplitButton(Image)

Initializes a new instance of the ToolStripSplitButton class with the specified image.

ToolStripSplitButton(String)

Initializes a new instance of the ToolStripSplitButton class with the specified text.

ToolStripSplitButton(String, Image)

Initializes a new instance of the ToolStripSplitButton class with the specified text and image.

ToolStripSplitButton(String, Image, EventHandler)

Initializes a new instance of the ToolStripSplitButton class with the specified display text, image, and Click event handler.

ToolStripSplitButton(String, Image, ToolStripItem[])

Initializes a new instance of the ToolStripSplitButton class with the specified text, image, and ToolStripItem array.

ToolStripSplitButton(String, Image, EventHandler, String)

Initializes a new instance of the ToolStripSplitButton class with the specified display text, image, Click event handler, and name.

ToolStripSplitButton()

Source:
ToolStripSplitButton.cs
Source:
ToolStripSplitButton.cs
Source:
ToolStripSplitButton.cs

Initializes a new instance of the ToolStripSplitButton class.

C#
public ToolStripSplitButton();

Applies to

.NET Framework 4.8.1 och andra versioner
Produkt Versioner
.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

ToolStripSplitButton(Image)

Source:
ToolStripSplitButton.cs
Source:
ToolStripSplitButton.cs
Source:
ToolStripSplitButton.cs

Initializes a new instance of the ToolStripSplitButton class with the specified image.

C#
public ToolStripSplitButton(System.Drawing.Image image);
C#
public ToolStripSplitButton(System.Drawing.Image? image);

Parameters

image
Image

The Image to be displayed on the ToolStripSplitButton.

Applies to

.NET Framework 4.8.1 och andra versioner
Produkt Versioner
.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

ToolStripSplitButton(String)

Source:
ToolStripSplitButton.cs
Source:
ToolStripSplitButton.cs
Source:
ToolStripSplitButton.cs

Initializes a new instance of the ToolStripSplitButton class with the specified text.

C#
public ToolStripSplitButton(string text);
C#
public ToolStripSplitButton(string? text);

Parameters

text
String

The text to be displayed on the ToolStripSplitButton.

Applies to

.NET Framework 4.8.1 och andra versioner
Produkt Versioner
.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

ToolStripSplitButton(String, Image)

Source:
ToolStripSplitButton.cs
Source:
ToolStripSplitButton.cs
Source:
ToolStripSplitButton.cs

Initializes a new instance of the ToolStripSplitButton class with the specified text and image.

C#
public ToolStripSplitButton(string text, System.Drawing.Image image);
C#
public ToolStripSplitButton(string? text, System.Drawing.Image? image);

Parameters

text
String

The text to be displayed on the ToolStripSplitButton.

image
Image

The Image to be displayed on the ToolStripSplitButton.

Applies to

.NET Framework 4.8.1 och andra versioner
Produkt Versioner
.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

ToolStripSplitButton(String, Image, EventHandler)

Source:
ToolStripSplitButton.cs
Source:
ToolStripSplitButton.cs
Source:
ToolStripSplitButton.cs

Initializes a new instance of the ToolStripSplitButton class with the specified display text, image, and Click event handler.

C#
public ToolStripSplitButton(string text, System.Drawing.Image image, EventHandler onClick);
C#
public ToolStripSplitButton(string? text, System.Drawing.Image? image, EventHandler? onClick);

Parameters

text
String

The text to be displayed on the ToolStripSplitButton.

image
Image

The Image to be displayed on the ToolStripSplitButton.

onClick
EventHandler

Raises the Click event when the user clicks the ToolStripSplitButton.

Applies to

.NET Framework 4.8.1 och andra versioner
Produkt Versioner
.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

ToolStripSplitButton(String, Image, ToolStripItem[])

Source:
ToolStripSplitButton.cs
Source:
ToolStripSplitButton.cs
Source:
ToolStripSplitButton.cs

Initializes a new instance of the ToolStripSplitButton class with the specified text, image, and ToolStripItem array.

C#
public ToolStripSplitButton(string text, System.Drawing.Image image, params System.Windows.Forms.ToolStripItem[] dropDownItems);
C#
public ToolStripSplitButton(string? text, System.Drawing.Image? image, params System.Windows.Forms.ToolStripItem[]? dropDownItems);

Parameters

text
String

The text to be displayed on the ToolStripSplitButton.

image
Image

The Image to be displayed on the ToolStripSplitButton.

dropDownItems
ToolStripItem[]

A ToolStripItem array of controls.

Applies to

.NET Framework 4.8.1 och andra versioner
Produkt Versioner
.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

ToolStripSplitButton(String, Image, EventHandler, String)

Source:
ToolStripSplitButton.cs
Source:
ToolStripSplitButton.cs
Source:
ToolStripSplitButton.cs

Initializes a new instance of the ToolStripSplitButton class with the specified display text, image, Click event handler, and name.

C#
public ToolStripSplitButton(string text, System.Drawing.Image image, EventHandler onClick, string name);
C#
public ToolStripSplitButton(string? text, System.Drawing.Image? image, EventHandler? onClick, string? name);

Parameters

text
String

The text to be displayed on the ToolStripSplitButton.

image
Image

The Image to be displayed on the ToolStripSplitButton.

onClick
EventHandler

Raises the Click event when the user clicks the ToolStripSplitButton.

name
String

The name of the ToolStripSplitButton.

Applies to

.NET Framework 4.8.1 och andra versioner
Produkt Versioner
.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