AnimationDeveloperSamples.MapGraphicKeyframe.RemoveGraphicFromDisplay C# (CSharp) Method

RemoveGraphicFromDisplay() private method

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