ToolStripSplitButton ToolStripSplitButton ToolStripSplitButton ToolStripSplitButton Constructors

定义

重载

ToolStripSplitButton() ToolStripSplitButton() ToolStripSplitButton()

初始化 ToolStripSplitButton 类的新实例。Initializes a new instance of the ToolStripSplitButton class.

ToolStripSplitButton(Image) ToolStripSplitButton(Image) ToolStripSplitButton(Image)

用指定的图像初始化 ToolStripSplitButton 类的新实例。Initializes a new instance of the ToolStripSplitButton class with the specified image.

ToolStripSplitButton(String) ToolStripSplitButton(String) ToolStripSplitButton(String) ToolStripSplitButton(String)

用指定的文本初始化 ToolStripSplitButton 类的新实例。Initializes a new instance of the ToolStripSplitButton class with the specified text.

ToolStripSplitButton(String, Image) ToolStripSplitButton(String, Image) ToolStripSplitButton(String, Image)

用指定的文本和图像初始化 ToolStripSplitButton 类的新实例。Initializes a new instance of the ToolStripSplitButton class with the specified text and image.

ToolStripSplitButton(String, Image, EventHandler) ToolStripSplitButton(String, Image, EventHandler) ToolStripSplitButton(String, Image, EventHandler)

用指定的显示文本、图像和 ToolStripSplitButton 事件处理程序初始化 Click 类的新实例。Initializes a new instance of the ToolStripSplitButton class with the specified display text, image, and Click event handler.

ToolStripSplitButton(String, Image, ToolStripItem[]) ToolStripSplitButton(String, Image, ToolStripItem[]) ToolStripSplitButton(String, Image, ToolStripItem[])

用指定的文本、图像和 ToolStripSplitButton 数组初始化 ToolStripItem 类的新实例。Initializes a new instance of the ToolStripSplitButton class with the specified text, image, and ToolStripItem array.

ToolStripSplitButton(String, Image, EventHandler, String) ToolStripSplitButton(String, Image, EventHandler, String) ToolStripSplitButton(String, Image, EventHandler, String)

用指定的显示文本、图像、ToolStripSplitButton 事件处理程序和名称初始化 Click 类的新实例。Initializes a new instance of the ToolStripSplitButton class with the specified display text, image, Click event handler, and name.

ToolStripSplitButton() ToolStripSplitButton() ToolStripSplitButton()

初始化 ToolStripSplitButton 类的新实例。Initializes a new instance of the ToolStripSplitButton class.

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

ToolStripSplitButton(Image) ToolStripSplitButton(Image) ToolStripSplitButton(Image)

用指定的图像初始化 ToolStripSplitButton 类的新实例。Initializes a new instance of the ToolStripSplitButton class with the specified 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

参数

image
Image Image Image Image

要在 Image 上显示的 ToolStripSplitButtonThe Image to be displayed on the ToolStripSplitButton.

ToolStripSplitButton(String) ToolStripSplitButton(String) ToolStripSplitButton(String) ToolStripSplitButton(String)

用指定的文本初始化 ToolStripSplitButton 类的新实例。Initializes a new instance of the ToolStripSplitButton class with the specified text.

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

参数

text
String String String String

要在 ToolStripSplitButton 上显示的文本。The text to be displayed on the ToolStripSplitButton.

ToolStripSplitButton(String, Image) ToolStripSplitButton(String, Image) ToolStripSplitButton(String, Image)

用指定的文本和图像初始化 ToolStripSplitButton 类的新实例。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);
new System.Windows.Forms.ToolStripSplitButton : string * System.Drawing.Image -> System.Windows.Forms.ToolStripSplitButton

参数

text
String String String String

要在 ToolStripSplitButton 上显示的文本。The text to be displayed on the ToolStripSplitButton.

image
Image Image Image Image

要在 Image 上显示的 ToolStripSplitButtonThe Image to be displayed on the ToolStripSplitButton.

ToolStripSplitButton(String, Image, EventHandler) ToolStripSplitButton(String, Image, EventHandler) ToolStripSplitButton(String, Image, EventHandler)

用指定的显示文本、图像和 ToolStripSplitButton 事件处理程序初始化 Click 类的新实例。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);
new System.Windows.Forms.ToolStripSplitButton : string * System.Drawing.Image * EventHandler -> System.Windows.Forms.ToolStripSplitButton

参数

text
String String String String

要在 ToolStripSplitButton 上显示的文本。The text to be displayed on the ToolStripSplitButton.

image
Image Image Image Image

要在 Image 上显示的 ToolStripSplitButtonThe Image to be displayed on the ToolStripSplitButton.

onClick
EventHandler EventHandler EventHandler EventHandler

当用户单击 Click 时将引发 ToolStripSplitButton 事件。Raises the Click event when the user clicks the ToolStripSplitButton.

ToolStripSplitButton(String, Image, ToolStripItem[]) ToolStripSplitButton(String, Image, ToolStripItem[]) ToolStripSplitButton(String, Image, ToolStripItem[])

用指定的文本、图像和 ToolStripSplitButton 数组初始化 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);
new System.Windows.Forms.ToolStripSplitButton : string * System.Drawing.Image * System.Windows.Forms.ToolStripItem[] -> System.Windows.Forms.ToolStripSplitButton

参数

text
String String String String

要在 ToolStripSplitButton 上显示的文本。The text to be displayed on the ToolStripSplitButton.

image
Image Image Image Image

要在 Image 上显示的 ToolStripSplitButtonThe Image to be displayed on the ToolStripSplitButton.

dropDownItems
ToolStripItem[]

一组 ToolStripItem 控件。A ToolStripItem array of controls.

ToolStripSplitButton(String, Image, EventHandler, String) ToolStripSplitButton(String, Image, EventHandler, String) ToolStripSplitButton(String, Image, EventHandler, String)

用指定的显示文本、图像、ToolStripSplitButton 事件处理程序和名称初始化 Click 类的新实例。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);
new System.Windows.Forms.ToolStripSplitButton : string * System.Drawing.Image * EventHandler * string -> System.Windows.Forms.ToolStripSplitButton

参数

text
String String String String

要在 ToolStripSplitButton 上显示的文本。The text to be displayed on the ToolStripSplitButton.

image
Image Image Image Image

要在 Image 上显示的 ToolStripSplitButtonThe Image to be displayed on the ToolStripSplitButton.

onClick
EventHandler EventHandler EventHandler EventHandler

当用户单击 Click 时将引发 ToolStripSplitButton 事件。Raises the Click event when the user clicks the ToolStripSplitButton.

适用于