Edit

Share via


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()

Initializes a new instance of the ToolStripSplitButton class.

public:
 ToolStripSplitButton();
public ToolStripSplitButton ();
Public Sub New ()

Applies to

ToolStripSplitButton(Image)

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

public:
 ToolStripSplitButton(System::Drawing::Image ^ image);
public ToolStripSplitButton (System.Drawing.Image image);
public ToolStripSplitButton (System.Drawing.Image? image);
new System.Windows.Forms.ToolStripSplitButton : System.Drawing.Image -> System.Windows.Forms.ToolStripSplitButton
Public Sub New (image As Image)

Parameters

image
Image

The Image to be displayed on the ToolStripSplitButton.

Applies to

ToolStripSplitButton(String)

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

public:
 ToolStripSplitButton(System::String ^ text);
public ToolStripSplitButton (string text);
public ToolStripSplitButton (string? text);
new System.Windows.Forms.ToolStripSplitButton : string -> System.Windows.Forms.ToolStripSplitButton
Public Sub New (text As String)

Parameters

text
String

The text to be displayed on the ToolStripSplitButton.

Applies to

ToolStripSplitButton(String, Image)

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

public:
 ToolStripSplitButton(System::String ^ text, System::Drawing::Image ^ image);
public ToolStripSplitButton (string text, System.Drawing.Image image);
public ToolStripSplitButton (string? text, System.Drawing.Image? image);
new System.Windows.Forms.ToolStripSplitButton : string * System.Drawing.Image -> System.Windows.Forms.ToolStripSplitButton
Public Sub New (text As String, image As Image)

Parameters

text
String

The text to be displayed on the ToolStripSplitButton.

image
Image

The Image to be displayed on the ToolStripSplitButton.

Applies to

ToolStripSplitButton(String, Image, EventHandler)

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

public:
 ToolStripSplitButton(System::String ^ text, System::Drawing::Image ^ image, EventHandler ^ onClick);
public ToolStripSplitButton (string text, System.Drawing.Image image, EventHandler onClick);
public ToolStripSplitButton (string? text, System.Drawing.Image? image, EventHandler? onClick);
new System.Windows.Forms.ToolStripSplitButton : string * System.Drawing.Image * EventHandler -> System.Windows.Forms.ToolStripSplitButton
Public Sub New (text As String, image As Image, onClick As EventHandler)

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

ToolStripSplitButton(String, Image, ToolStripItem[])

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

public:
 ToolStripSplitButton(System::String ^ text, System::Drawing::Image ^ image, ... cli::array <System::Windows::Forms::ToolStripItem ^> ^ dropDownItems);
public ToolStripSplitButton (string text, System.Drawing.Image image, params System.Windows.Forms.ToolStripItem[] dropDownItems);
public ToolStripSplitButton (string? text, System.Drawing.Image? image, params System.Windows.Forms.ToolStripItem[]? dropDownItems);
new System.Windows.Forms.ToolStripSplitButton : string * System.Drawing.Image * System.Windows.Forms.ToolStripItem[] -> System.Windows.Forms.ToolStripSplitButton
Public Sub New (text As String, image As Image, ParamArray dropDownItems As ToolStripItem())

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

ToolStripSplitButton(String, Image, EventHandler, String)

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

public:
 ToolStripSplitButton(System::String ^ text, System::Drawing::Image ^ image, EventHandler ^ onClick, System::String ^ name);
public ToolStripSplitButton (string text, System.Drawing.Image image, EventHandler onClick, string name);
public ToolStripSplitButton (string? text, System.Drawing.Image? image, EventHandler? onClick, string? name);
new System.Windows.Forms.ToolStripSplitButton : string * System.Drawing.Image * EventHandler * string -> System.Windows.Forms.ToolStripSplitButton
Public Sub New (text As String, image As Image, onClick As EventHandler, name As String)

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