/// <summary> /// 从指定Layer中删除 /// </summary> /// <param name="layer"></param> public virtual void RemoveOperationShapeFromLayer(ILayer <IPrimitive> layer) { Anchors.ForEach(a => a.RemoveFromLayer(layer)); ResizeHandles.ForEach(a => a.RemoveFromLayer(layer)); if (__bound != null) { layer.Remove(__bound); } }
public virtual void AddOperationShapeToLayer(ILayer <IPrimitive> layer) { if (__bound != null) { layer.Add(__bound); } Anchors.ForEach(a => a.AddToLayer(layer)); ResizeHandles.ForEach(a => a.AddToLayer(layer)); }