Click or drag to resize

ApplicationShapeChanged Event

Occurs when the shape is changed.

Namespace:  RootPro.RootProCAD
Assembly:  RootPro.RootProCAD.Library (in RootPro.RootProCAD.Library.dll) Version: 12.0.0.0 (12.0.0.0)
Syntax
public event ShapeEventHandler ShapeChanged

Value

Type: RootPro.RootProCADShapeEventHandler
Remarks
You can cast ShapeEventArgs that store the event data to get the data for ShapeChangedEventArgs.
Examples
C#
private void AppAddIn_Startup(object sender, EventArgs e)
{
    ShapeChanged += AppAddIn_ShapeChanged;
}

private void AppAddIn_ShapeChanged(object sender, ShapeEventArgs e)
{
    ShapeChangedEventArgs ce = (ShapeChangedEventArgs)e;

    Shape newShape = ce.Shape;
    Shape oldShape = ce.OldShape;

    if (newShape != null && oldShape != null)
    {
        if (newShape.LayerID != oldShape.LayerID)
            MessageBox.Show("Layer of shape has been changed!");
    }
}
See Also