StatusStrip.CreateDefaultItem(String, Image, EventHandler) Método

Definición

Crea un valor predeterminado ToolStripStatusLabel con el texto, la imagen y el controlador de eventos especificados en una nueva StatusStrip instancia.

protected public:
 override System::Windows::Forms::ToolStripItem ^ CreateDefaultItem(System::String ^ text, System::Drawing::Image ^ image, EventHandler ^ onClick);
protected internal override System.Windows.Forms.ToolStripItem CreateDefaultItem(string text, System.Drawing.Image image, EventHandler onClick);
override this.CreateDefaultItem : string * System.Drawing.Image * EventHandler -> System.Windows.Forms.ToolStripItem
Protected Friend Overrides Function CreateDefaultItem (text As String, image As Image, onClick As EventHandler) As ToolStripItem

Parámetros

text
String

Texto que se va a usar para .ToolStripStatusLabel Si el text parámetro es un guión (-), este método crea un ToolStripSeparator.

image
Image

que Image se va a mostrar en .ToolStripStatusLabel

onClick
EventHandler

Controlador de eventos que genera el Click evento cuando ToolStripStatusLabel se hace clic en .

Devoluciones

, ToolStripStatusLabel(String, Image, EventHandler)o ToolStripSeparator si el text parámetro es un guión (-).

Comentarios

Use el CreateDefaultItem método para agregar un ToolStripStatusLabel objeto con características usadas habitualmente a .StatusStrip

Se aplica a