BindingNavigator.MoveFirstItem Właściwość

Definicja

Pobiera lub ustawia element ToolStripItem skojarzony z funkcją Move First .

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

Wartość właściwości

Obiekt ToolStripItem reprezentujący przycisk Move First (Przenieś pierwszy ) dla obiektu BindingSource.

Atrybuty

Uwagi

Po ustawieniu ta właściwość generuje Click program obsługi zdarzeń dla przycisku Przenieś pierwszy . Ta procedura obsługi zdarzeń wywołuje metodę po kliknięciu MoveFirst przycisku Move First w czasie wykonywania.

Ta właściwość jest null , jeśli nie została wcześniej ustawiona i jest dostępna przed AddStandardItems niejawnie lub jawnie wywoływana metoda.

Kontrolka BindingNavigator wyłączy przycisk Move First (Przenieś pierwszy) w następujących okolicznościach czasu wykonywania: BindingSource właściwość ma nullwartość , BindingSource.Position właściwość ma wartość zero lub AllowNew dla elementu powiązanego BindingSource to false.

W domyślnej implementacji ta właściwość reprezentuje kontrolkę typu ToolStripButton.

Dotyczy

Zobacz też