ToolStripPanelRow.OnBoundsChanged(Rectangle, Rectangle) ToolStripPanelRow.OnBoundsChanged(Rectangle, Rectangle) ToolStripPanelRow.OnBoundsChanged(Rectangle, Rectangle) ToolStripPanelRow.OnBoundsChanged(Rectangle, Rectangle) Method

Definizione

Si verifica quando la proprietà Bounds cambia.Occurs when the Bounds property changes.

protected:
 void OnBoundsChanged(System::Drawing::Rectangle oldBounds, System::Drawing::Rectangle newBounds);
protected void OnBoundsChanged (System.Drawing.Rectangle oldBounds, System.Drawing.Rectangle newBounds);
member this.OnBoundsChanged : System.Drawing.Rectangle * System.Drawing.Rectangle -> unit
Protected Sub OnBoundsChanged (oldBounds As Rectangle, newBounds As Rectangle)

Parametri

oldBounds
Rectangle Rectangle Rectangle Rectangle

Valore originale della proprietà Bounds.The original value of the Bounds property.

newBounds
Rectangle Rectangle Rectangle Rectangle

Nuovo valore della proprietà Bounds.The new value of the Bounds property.

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 OnBoundsChanged consente inoltre alle classi derivate di gestire l'evento senza associare un delegato.The OnBoundsChanged 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 OnBoundsChanged(Rectangle, Rectangle) in una classe derivata, verificare di chiamare il metodo OnBoundsChanged(Rectangle, Rectangle) della classe di base in modo che i delegati registrati ricevano l'evento.When overriding OnBoundsChanged(Rectangle, Rectangle) in a derived class, be sure to call the base class's OnBoundsChanged(Rectangle, Rectangle) method so that registered delegates receive the event.

Si applica a