コード例 #1
0
        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);
        }
コード例 #2
0
        public PowerPointSlide CreateAckSlide()
        {
            Slide ackSlide = PowerPointPresentation.Current.Presentation.Slides.Add(PowerPointPresentation.Current.SlideCount + 1, PpSlideLayout.ppLayoutBlank);

            return(PowerPointAckSlide.FromSlideFactory(ackSlide));
        }
コード例 #3
0
 public bool IsAckSlide()
 {
     return(PowerPointAckSlide.IsAckSlide(this));
 }