DocumentShapeChanged イベント |
名前空間: RootPro.RootProCAD
ActiveDocument.ShapeChanged += Document_ShapeChanged; private void Document_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!"); } }