public static PowerPointSlide FromSlideFactory(Slide slide, bool includeIndicator = false) { if (slide == null) { return(null); } PowerPointSlide powerPointSlide; if (slide.Name.Contains("PPTLabsSpotlight")) { powerPointSlide = PowerPointSpotlightSlide.FromSlideFactory(slide); } else if (PowerPointAckSlide.IsAckSlide(slide)) { powerPointSlide = PowerPointAckSlide.FromSlideFactory(slide); } else { powerPointSlide = new PowerPointSlide(slide); } if (includeIndicator) { powerPointSlide.AddPowerPointLabsIndicator(); } return(powerPointSlide); }
public PowerPointSlide CreateSpotlightSlide() { Slide duplicatedSlide = _slide.Duplicate()[1]; return(PowerPointSpotlightSlide.FromSlideFactory(duplicatedSlide)); }