private void RemoveGraphicFromDisplay(IElement elem, IAGAnimationContainer animContainer) { IActiveView view = animContainer.CurrentView as IActiveView; IGraphicsContainer graphicsContainer = view as IGraphicsContainer; graphicsContainer.DeleteElement(elem); }