Bagikan melalui


BindingNavigator.AddNewItem Properti

Definisi

Mendapatkan atau mengatur ToolStripItem yang mewakili tombol Tambahkan Baru .

public:
 property System::Windows::Forms::ToolStripItem ^ AddNewItem { System::Windows::Forms::ToolStripItem ^ get(); void set(System::Windows::Forms::ToolStripItem ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ReferenceConverter))]
public System.Windows.Forms.ToolStripItem AddNewItem { get; set; }
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ReferenceConverter))]
public System.Windows.Forms.ToolStripItem? AddNewItem { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ReferenceConverter))>]
member this.AddNewItem : System.Windows.Forms.ToolStripItem with get, set
Public Property AddNewItem As ToolStripItem

Nilai Properti

ToolStripItem yang mewakili tombol Tambahkan Baru untuk BindingSource. Default adalah null.

Atribut

Keterangan

Saat diatur, AddNewItem properti menghasilkan penanganan Click aktivitas untuk tombol Tambahkan Baru . Penanganan aktivitas ini memanggil AddNew metode ketika tombol Tambahkan Baru diklik pada durasi.

Properti ini jika null sebelumnya tidak diatur dan diakses sebelum AddStandardItems metode dipanggil secara implisit atau eksplisit.

BindingNavigator Kontrol akan menonaktifkan tombol Tambahkan Baru jika BindingSource properti adalah null atau AllowNew properti adalah false.

Dalam implementasi default, properti ini mewakili kontrol jenis ToolStripButton.

Berlaku untuk

Lihat juga