ToolStripItemCollection.Add Yöntem
Tanım
Koleksiyona bir ekler ToolStripItem .Adds a ToolStripItem to the collection.
Aşırı Yüklemeler
Add(Image) |
ToolStripItemBelirtilen görüntüyü koleksiyona görüntüleyen bir ekler.Adds a ToolStripItem that displays the specified image to the collection. |
Add(String) |
ToolStripItemBelirtilen metni koleksiyona görüntüleyen bir ekler.Adds a ToolStripItem that displays the specified text to the collection. |
Add(ToolStripItem) |
Belirtilen öğeyi koleksiyonun sonuna ekler.Adds the specified item to the end of the collection. |
Add(String, Image) |
ToolStripItemBelirtilen görüntüyü ve metni koleksiyona görüntüleyen bir ekler.Adds a ToolStripItem that displays the specified image and text to the collection. |
Add(String, Image, EventHandler) |
ToolStripItemBelirtilen görüntüyü ve metni koleksiyona görüntüleyen ve olayı oluşturan bir ekler Click .Adds a ToolStripItem that displays the specified image and text to the collection and that raises the Click event. |
Add(Image)
ToolStripItemBelirtilen görüntüyü koleksiyona görüntüleyen bir ekler.Adds a ToolStripItem that displays the specified image to the collection.
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
Parametreler
- image
- Image
ImageÜzerinde görüntülenecek ToolStripItem .The Image to be displayed on the ToolStripItem.
Döndürülenler
Yeni ToolStripItem .The new ToolStripItem.
Şunlara uygulanır
Add(String)
ToolStripItemBelirtilen metni koleksiyona görüntüleyen bir ekler.Adds a ToolStripItem that displays the specified text to the collection.
public:
System::Windows::Forms::ToolStripItem ^ Add(System::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
Parametreler
- text
- String
Üzerinde görüntülenecek metin ToolStripItem .The text to be displayed on the ToolStripItem.
Döndürülenler
Yeni ToolStripItem .The new ToolStripItem.
Şunlara uygulanır
Add(ToolStripItem)
Belirtilen öğeyi koleksiyonun sonuna ekler.Adds the specified item to the end of the 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
Parametreler
- value
- ToolStripItem
ToolStripItemKoleksiyonun sonuna eklemek için.The ToolStripItem to add to the end of the collection.
Döndürülenler
Int32Koleksiyondaki yeni öğenin sıfır tabanlı dizinini temsil eden.An Int32 representing the zero-based index of the new item in the collection.
Özel durumlar
value
Parametresi null
.The value
parameter is null
.
Şunlara uygulanır
Add(String, Image)
ToolStripItemBelirtilen görüntüyü ve metni koleksiyona görüntüleyen bir ekler.Adds a ToolStripItem that displays the specified image and text to the 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);
member this.Add : string * System.Drawing.Image -> System.Windows.Forms.ToolStripItem
Public Function Add (text As String, image As Image) As ToolStripItem
Parametreler
- text
- String
Üzerinde görüntülenecek metin ToolStripItem .The text to be displayed on the ToolStripItem.
- image
- Image
ImageÜzerinde görüntülenecek ToolStripItem .The Image to be displayed on the ToolStripItem.
Döndürülenler
Yeni ToolStripItem .The new ToolStripItem.
Şunlara uygulanır
Add(String, Image, EventHandler)
ToolStripItemBelirtilen görüntüyü ve metni koleksiyona görüntüleyen ve olayı oluşturan bir ekler Click .Adds a ToolStripItem that displays the specified image and text to the collection and that raises the Click event.
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);
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
Parametreler
- text
- String
Üzerinde görüntülenecek metin ToolStripItem .The text to be displayed on the ToolStripItem.
- image
- Image
ImageÜzerinde görüntülenecek ToolStripItem .The Image to be displayed on the ToolStripItem.
- onClick
- EventHandler
Döndürülenler
Yeni ToolStripItem .The new ToolStripItem.