none
How to get the animations/effect count for each slide in powerpoint? RRS feed

  • Question

  • Im using Microsoft.office.iterop.powerpoint 

    Well I dont seem to find a method that return the count of animations for each slides..  

    Or im not sur if its called also effects.


    Monday, January 23, 2017 5:04 AM

All replies

  • Hi,

    We could use Sequence Object (PowerPoint) to return the collection of animations.

    E.g.

                foreach (PowerPoint.Slide slide in Globals.ThisAddIn.Application.ActivePresentation.Slides)
                {
                    int aniCount = slide.TimeLine.MainSequence.Count;
                    System.Windows.Forms.MessageBox.Show(aniCount.ToString());
                }    
     


            For Each slide In Globals.ThisAddIn.Application.ActivePresentation.Slides
                System.Windows.Forms.MessageBox.Show(slide.TimeLine.MainSequence.Count)
            Next

    Regards,

    Celeste


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, January 24, 2017 1:31 AM
    Moderator