BindingNavigator.AddNewItem Proprietà

Definizione

Ottiene o imposta l'oggetto ToolStripItem che rappresenta il pulsante Aggiungi nuovo.

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

Valore della proprietà

Oggetto ToolStripItem che rappresenta il pulsante Aggiungi nuovo per l'oggetto BindingSource. Il valore predefinito è null.

Attributi

Commenti

Se impostata, la AddNewItem proprietà genera il Click gestore eventi per il pulsante Aggiungi nuovo . Questo gestore eventi chiama il AddNew metodo quando si fa clic sul pulsante Aggiungi nuovo in fase di esecuzione.

Questa proprietà è null se non è stata impostata in precedenza ed è accessibile prima che il AddStandardItems metodo venga chiamato in modo implicito o esplicito.

Il BindingNavigator controllo disabiliterà il pulsante Aggiungi nuovo se la BindingSource proprietà è null o la AllowNew proprietà è false.

Nell'implementazione predefinita questa proprietà rappresenta un controllo di tipo ToolStripButton.

Si applica a

Vedi anche