Evento Shape.RegionChanged

Si verifica quando il valore di Region modifiche delle proprietà.

Spazio dei nomi:  Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

Sintassi

'Dichiarazione
<BrowsableAttribute(True)> _
Public Event RegionChanged As EventHandler
[BrowsableAttribute(true)]
public event EventHandler RegionChanged
[BrowsableAttribute(true)]
public:
 event EventHandler^ RegionChanged {
    void add (EventHandler^ value);
    void remove (EventHandler^ value);
}
[<BrowsableAttribute(true)>]
member RegionChanged : IEvent<EventHandler,
    EventArgs>
JScript non supporta gli eventi.

Note

per ulteriori informazioni su come gestire gli eventi, vedere Utilizzo degli eventi.

Esempi

Nell'esempio seguente viene illustrato come rispondere a RegionChanged evento in un gestore eventi.Questo esempio presuppone che l'utente abbia OvalShape controllare OvalShape1 denominato in un form.

Private Sub OvalShape1_RegionChanged() Handles OvalShape1.RegionChanged
    ' Force the shape to repaint.
    OvalShape1.Invalidate()
End Sub
private void ovalShape1_RegionChanged(object sender, System.EventArgs e)
{
    // Force the shape to repaint.
    ovalShape1.Invalidate();
}

Sicurezza di .NET Framework

Vedere anche

Riferimenti

Shape Classe

Spazio dei nomi Microsoft.VisualBasic.PowerPacks

Altre risorse

Procedura: disegnare linee con il controllo LineShape (Visual Studio)

Procedura: disegnare forme con i controlli OvalShape e RectangleShape (Visual Studio)

Introduzione ai controlli Line e Shape (Visual Studio)