Control.OnBackgroundImageLayoutChanged(EventArgs) Metodo
Definizione
Genera l'evento BackgroundImageLayoutChanged.Raises the BackgroundImageLayoutChanged event.
protected:
virtual void OnBackgroundImageLayoutChanged(EventArgs ^ e);
protected virtual void OnBackgroundImageLayoutChanged (EventArgs e);
abstract member OnBackgroundImageLayoutChanged : EventArgs -> unit
override this.OnBackgroundImageLayoutChanged : EventArgs -> unit
Protected Overridable Sub OnBackgroundImageLayoutChanged (e As EventArgs)
Parametri
Commenti
Quando viene generato un evento, il gestore dell'evento viene richiamato tramite un delegato.Raising an event invokes the event handler through a delegate. Per altre informazioni, vedere la gestione e generazione di eventi.For more information, see Handling and Raising Events.
Il metodo OnBackgroundImageLayoutChanged consente inoltre alle classi derivate di gestire l'evento senza associare un delegato.The OnBackgroundImageLayoutChanged method also allows derived classes to handle the event without attaching a delegate. È la tecnica consigliata per la gestione dell'evento in una classe derivata.This is the preferred technique for handling the event in a derived class.
Note per gli eredi
Quando si esegue l'override di OnBackgroundImageLayoutChanged(EventArgs) in una classe derivata, verificare di chiamare il metodo OnBackgroundImageLayoutChanged(EventArgs) della classe di base in modo che i delegati registrati ricevano l'evento.When overriding OnBackgroundImageLayoutChanged(EventArgs) in a derived class, be sure to call the base class's OnBackgroundImageLayoutChanged(EventArgs) method so that registered delegates receive the event.