Shape.RegionChanged 事件

Region 属性的值更改时发生。

命名空间:  Microsoft.VisualBasic.PowerPacks
程序集:  Microsoft.VisualBasic.PowerPacks.Vs(在 Microsoft.VisualBasic.PowerPacks.Vs.dll 中)

语法

声明
<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 不支持事件。

备注

有关如何处理事件的更多信息,请参见使用事件

示例

下面的示例演示如何在事件处理程序中响应 RegionChanged 事件。 此示例要求您具有名为在窗体的 OvalShape1 的一个 OvalShape 控件。

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 安全性

请参见

参考

Shape 类

Microsoft.VisualBasic.PowerPacks 命名空间

其他资源

如何:使用 LineShape 控件绘制直线 (Visual Studio)

如何:使用 OvalShape 和 RectangleShape 控件绘制形状 (Visual Studio)

Line 和 Shape 控件简介 (Visual Studio)