次の方法で共有


Shape.RegionChanged Event

Occurs when the value of the Region property changes.

Namespace:  Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

Syntax

'宣言
<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 does not support events.

Remarks

For more information about how to handle events, see Consuming Events.

Examples

The following example shows how to respond to the RegionChanged event in an event handler. This example requires that you have an OvalShape control named OvalShape1 on a 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();
}

.NET Framework Security

See Also

Reference

Shape Class

Microsoft.VisualBasic.PowerPacks Namespace

Other Resources

How to: Draw Lines with the LineShape Control (Visual Studio)

How to: Draw Shapes with the OvalShape and RectangleShape Controls (Visual Studio)

Introduction to the Line and Shape Controls (Visual Studio)