如何获得powerpoint中每张幻灯片的动画/效果计数? [英] How to get the animations/effect count for each slide in powerpoint?

查看:56
本文介绍了如何获得powerpoint中每张幻灯片的动画/效果计数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Microsoft.office.iterop.powerpoint 

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.




推荐答案

Hi,

我们可以使用
序列对象(PowerPoint) 返回
的集合
动画。

例如

            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

问候,

Celeste


这篇关于如何获得powerpoint中每张幻灯片的动画/效果计数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆