- fpSpread1.ActiveSheet.DrawingContainer.Changed += DrawingContainer_Changed;
- void DrawingContainer_Changed(object sender, EventArgs e)
- {
- Console.WriteLine("DrawingContainer.Changed" + fpSpread1.ActiveSheet.DrawingContainer.Count.ToString());
- }
复制代码
DrawingContainer_Changed 可以接收到粘贴。
- d = new RectangleShape();
- d.Name = "myshape";
- d.Size = new System.Drawing.Size(100, 100);
- d.Changed += d_Changed;
- void d_Changed(object sender, EventArgs e)
- {
- Console.WriteLine("Shape.Changed: Top:" + d.Top.ToString() + ", Left:" + d.Left.ToString() + ", Height:" + d.Height.ToString() + ", Width:" + d.Width.ToString());
- }
复制代码
change也能接收shape 调整事件 |