ToolStripItemCollection.Add Méthode

Définition

Ajoute une ToolStripItem à la collection.

Surcharges

Nom Description
Add(Image)

Ajoute une ToolStripItem image qui affiche l’image spécifiée à la collection.

Add(String)

Ajoute un ToolStripItem texte qui affiche le texte spécifié à la collection.

Add(ToolStripItem)

Ajoute l’élément spécifié à la fin de la collection.

Add(String, Image)

Ajoute un ToolStripItem élément qui affiche l’image et le texte spécifiés dans la collection.

Add(String, Image, EventHandler)

Ajoute un ToolStripItem élément qui affiche l’image et le texte spécifiés dans la collection et qui déclenche l’événement Click .

Add(Image)

Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs

Ajoute une ToolStripItem image qui affiche l’image spécifiée à la collection.

public:
 System::Windows::Forms::ToolStripItem ^ Add(System::Drawing::Image ^ image);
public System.Windows.Forms.ToolStripItem Add(System.Drawing.Image image);
public System.Windows.Forms.ToolStripItem Add(System.Drawing.Image? image);
member this.Add : System.Drawing.Image -> System.Windows.Forms.ToolStripItem
Public Function Add (image As Image) As ToolStripItem

Paramètres

image
Image

À Image afficher sur le ToolStripItem.

Retours

ToolStripItemNouveau .

S’applique à

Add(String)

Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs

Ajoute un ToolStripItem texte qui affiche le texte spécifié à la collection.

public:
 System::Windows::Forms::ToolStripItem ^ Add(System::String ^ text);
public System.Windows.Forms.ToolStripItem Add(string text);
public System.Windows.Forms.ToolStripItem Add(string? text);
member this.Add : string -> System.Windows.Forms.ToolStripItem
Public Function Add (text As String) As ToolStripItem

Paramètres

text
String

Texte à afficher sur le ToolStripItem.

Retours

ToolStripItemNouveau .

S’applique à

Add(ToolStripItem)

Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs

Ajoute l’élément spécifié à la fin de la collection.

public:
 int Add(System::Windows::Forms::ToolStripItem ^ value);
public int Add(System.Windows.Forms.ToolStripItem value);
member this.Add : System.Windows.Forms.ToolStripItem -> int
Public Function Add (value As ToolStripItem) As Integer

Paramètres

value
ToolStripItem

À ToolStripItem ajouter à la fin de la collection.

Retours

Représentant Int32 l’index de base zéro du nouvel élément de la collection.

Exceptions

Le value paramètre est null.

S’applique à

Add(String, Image)

Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs

Ajoute un ToolStripItem élément qui affiche l’image et le texte spécifiés dans la collection.

public:
 System::Windows::Forms::ToolStripItem ^ Add(System::String ^ text, System::Drawing::Image ^ image);
public System.Windows.Forms.ToolStripItem Add(string text, System.Drawing.Image image);
public System.Windows.Forms.ToolStripItem Add(string? text, System.Drawing.Image? image);
member this.Add : string * System.Drawing.Image -> System.Windows.Forms.ToolStripItem
Public Function Add (text As String, image As Image) As ToolStripItem

Paramètres

text
String

Texte à afficher sur le ToolStripItem.

image
Image

À Image afficher sur le ToolStripItem.

Retours

ToolStripItemNouveau .

S’applique à

Add(String, Image, EventHandler)

Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs
Source:
ToolStripItemCollection.cs

Ajoute un ToolStripItem élément qui affiche l’image et le texte spécifiés dans la collection et qui déclenche l’événement Click .

public:
 System::Windows::Forms::ToolStripItem ^ Add(System::String ^ text, System::Drawing::Image ^ image, EventHandler ^ onClick);
public System.Windows.Forms.ToolStripItem Add(string text, System.Drawing.Image image, EventHandler onClick);
public System.Windows.Forms.ToolStripItem Add(string? text, System.Drawing.Image? image, EventHandler? onClick);
member this.Add : string * System.Drawing.Image * EventHandler -> System.Windows.Forms.ToolStripItem
Public Function Add (text As String, image As Image, onClick As EventHandler) As ToolStripItem

Paramètres

text
String

Texte à afficher sur le ToolStripItem.

image
Image

À Image afficher sur le ToolStripItem.

onClick
EventHandler

Déclenche l’événement Click.

Retours

ToolStripItemNouveau .

S’applique à