Class OdfAnimation
- Namespace
- OdfKit.Presentation
- Assembly
- OdfKit.dll
Represents a high-level presentation animation effect. 表示高階簡報動畫效果的類別。
public sealed class OdfAnimation
- Inheritance
-
OdfAnimation
- Inherited Members
Constructors
OdfAnimation(OdfNode, string, OdfAnimationEffect, OdfAnimationTrigger)
Initializes a new instance of the OdfAnimation class. 初始化 OdfAnimation 類別的新執行個體。
public OdfAnimation(OdfNode node, string targetElementId, OdfAnimationEffect effect, OdfAnimationTrigger trigger)
Parameters
nodeOdfNodeThe underlying OdfKit.DOM.OdfNode instance. / 底層的 OdfKit.DOM.OdfNode 執行個體。
targetElementIdstringThe target element identifier. / 目標元素識別碼。
effectOdfAnimationEffectThe animation effect type. / 動畫效果類型。
triggerOdfAnimationTriggerThe animation trigger mode. / 動畫觸發方式。
Properties
Effect
Gets the animation effect type. 取得動畫效果類型。
public OdfAnimationEffect Effect { get; }
Property Value
Node
Gets the underlying ODF animation node. 取得底層的 ODF 動畫節點。
public OdfNode Node { get; }
Property Value
- OdfNode
TargetElementId
Gets the target element identifier. 取得目標元素識別碼。
public string TargetElementId { get; }
Property Value
Trigger
Gets the animation trigger mode. 取得動畫觸發方式。
public OdfAnimationTrigger Trigger { get; }
Property Value
Methods
SetDelay(TimeSpan)
Sets the animation startup delay and updates smil:begin according to the trigger mode.
設定動畫效果的延遲啟動時間,並依觸發方式更新 smil:begin。
public OdfAnimation SetDelay(TimeSpan delay)
Parameters
delayTimeSpanThe delay. / 延遲時間。
Returns
- OdfAnimation
The current animation instance. / 目前動畫執行個體。
SetDuration(TimeSpan)
Sets the animation duration and synchronizes child node smil:dur values.
設定動畫效果的持續時間,並同步更新子節點的 smil:dur。
public OdfAnimation SetDuration(TimeSpan duration)
Parameters
durationTimeSpanThe duration. / 持續時間。
Returns
- OdfAnimation
The current animation instance. / 目前動畫執行個體。