Class OdfAnimationInfo
- Namespace
- OdfKit.Presentation
- Assembly
- OdfKit.dll
Represents summary information for an animation effect on a slide. 表示投影片上一筆動畫效果的摘要資訊。
public sealed class OdfAnimationInfo
- Inheritance
-
OdfAnimationInfo
- Inherited Members
Constructors
OdfAnimationInfo(OdfAnimationKind, string, OdfAnimationEffect, OdfAnimationTrigger, string?, string?, string?, int, int?, int?)
Represents summary information for an animation effect on a slide. 表示投影片上一筆動畫效果的摘要資訊。
public OdfAnimationInfo(OdfAnimationKind kind, string targetElementId, OdfAnimationEffect effect, OdfAnimationTrigger trigger, string? presetId, string? duration = null, string? begin = null, int sequenceIndex = 0, int? paragraphStartIndex = null, int? paragraphEndIndex = null)
Parameters
kindOdfAnimationKindThe animation kind. / 動畫種類。
targetElementIdstringThe target shape identifier. / 目標圖形識別碼。
effectOdfAnimationEffectThe animation effect type. / 動畫效果類型。
triggerOdfAnimationTriggerThe animation trigger mode. / 動畫觸發方式。
presetIdstringThe raw LibreOffice preset animation identifier. / LibreOffice 預設動畫識別碼原文。
durationstringThe raw duration value (
smil:dur). / 持續時間原文(smil:dur)。beginstringThe raw begin value (
smil:begin). / 開始時間原文(smil:begin)。sequenceIndexintThe zero-based order index in the slide animation sequence. / 在投影片動畫序列中的順序索引(以 0 為基準)。
paragraphStartIndexint?The zero-based starting paragraph index for PPTX paragraph animation. / PPTX 逐段落動畫的起始段落索引(以 0 為基準)。
paragraphEndIndexint?The zero-based ending paragraph index for PPTX paragraph animation. / PPTX 逐段落動畫的結束段落索引(以 0 為基準)。
Properties
Begin
Gets the raw begin value. 取得開始時間原文。
public string? Begin { get; }
Property Value
Duration
Gets the raw duration value. 取得持續時間原文。
public string? Duration { get; }
Property Value
Effect
Gets the animation effect type. 取得動畫效果類型。
public OdfAnimationEffect Effect { get; }
Property Value
Kind
Gets the animation kind. 取得動畫種類。
public OdfAnimationKind Kind { get; }
Property Value
ParagraphEndIndex
Gets the zero-based ending paragraph index for PPTX paragraph animation. 取得 PPTX 逐段落動畫的結束段落索引(以 0 為基準)。
public int? ParagraphEndIndex { get; }
Property Value
- int?
ParagraphStartIndex
Gets the zero-based starting paragraph index for PPTX paragraph animation. 取得 PPTX 逐段落動畫的起始段落索引(以 0 為基準)。
public int? ParagraphStartIndex { get; }
Property Value
- int?
PresetId
Gets the raw LibreOffice preset animation identifier. 取得 LibreOffice 預設動畫識別碼原文。
public string? PresetId { get; }
Property Value
SequenceIndex
Gets the order index in the slide animation sequence. 取得在投影片動畫序列中的順序索引。
public int SequenceIndex { get; }
Property Value
TargetElementId
Gets the target shape identifier. 取得目標圖形識別碼。
public string TargetElementId { get; }
Property Value
Trigger
Gets the animation trigger mode. 取得動畫觸發方式。
public OdfAnimationTrigger Trigger { get; }
Property Value
Methods
TryGetDelaySeconds(out double)
public bool TryGetDelaySeconds(out double seconds)
Parameters
secondsdoubleThe parsed delay seconds when successful. / 解析成功時傳回的延遲秒數。
Returns
Remarks
Only numeric seconds or prev.end+Ns forms are supported.
僅支援純數值秒或 prev.end+Ns 形式。
TryGetDurationSeconds(out double)
public bool TryGetDurationSeconds(out double seconds)
Parameters
secondsdoubleThe parsed seconds when successful. / 解析成功時傳回的秒數。