//Delete existing animations private static void ProcessExistingHighlightSlide(PowerPointSlide currentSlide, List<PowerPoint.Shape> shapesToUse) { currentSlide.DeleteIndicator(); currentSlide.DeleteShapesWithPrefix("PPTLabsHighlightBackgroundShape"); foreach (PowerPoint.Shape tmp in currentSlide.Shapes) if (shapesToUse.Contains(tmp)) if (userSelection != HighlightTextSelection.kTextSelected) currentSlide.DeleteShapeAnimations(tmp); }