Dzwebs.Net

撰写电脑技术杂文十余年

演示文稿AnimationBehavior对象与AnimationBehaviors集合

Admin | 2012-9-10 9:51:43 | 被阅次数 | 5820

温馨提示!

如果未能解决您的问题,请点击搜索;登陆可复制文章,点击登陆

  一、AnimationBehavior对象

  代表动画效果的动作、主动画序列或交互式动画序列。AnimationBehavior 对象是AnimationBehaviors 集合中的成员。

  如何使用AnimationBehavior对象

  使用 Behaviors(index) 返回单个 AnimationBehavior 对象,其中 index 是动作序列中动作的编号。以下示例设置旋转的起点和终点的位置。本示例假设主动画序列的第一个动作是一个 RotationEffect 对象。

  Sub MyChange()
      With ActivePresentation.Slides(1).TimeLine.MainSequence(1) _
              .Behaviors(1).RotationEffect
          .From = 1
          .To = 180
      End With
  End Sub

  二、代表AnimationBehavior对象的集合

  如何使用AnimationBehaviors 集合

  使用 Add 方法添加一个动画动作。以下示例在第一张幻灯片的主动画序列中添加一个五秒钟的动画旋转动作。

  Sub AnimationObject()
      Dim timeMain As TimeLine

      'Reference the main animation timeline
      Set timeMain = ActivePresentation.Slides(1).TimeLine

      'Add a five-second animated rotation behavior
      'as the first animation in the main animation sequence
      timeMain.MainSequence(1).Behaviors.Add Type:=msoAnimTypeRotation, Index:=1
  End Sub


该杂文来自: PowerPoint杂文

上一篇:幻灯片中的Adjustments对象

下一篇:AnimationPoint对象与AnimationPoint集合

网站备案号:

网站备案号:滇ICP备11001339号-7

版权属性:

Copyright 2007-2021-forever Inc. all Rights Reserved.

联系方式:

Email:dzwebs@126.com QQ:83539231 访问统计