Table of Contents

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

kind OdfAnimationKind

The animation kind. / 動畫種類。

targetElementId string

The target shape identifier. / 目標圖形識別碼。

effect OdfAnimationEffect

The animation effect type. / 動畫效果類型。

trigger OdfAnimationTrigger

The animation trigger mode. / 動畫觸發方式。

presetId string

The raw LibreOffice preset animation identifier. / LibreOffice 預設動畫識別碼原文。

duration string

The raw duration value (smil:dur). / 持續時間原文(smil:dur)。

begin string

The raw begin value (smil:begin). / 開始時間原文(smil:begin)。

sequenceIndex int

The zero-based order index in the slide animation sequence. / 在投影片動畫序列中的順序索引(以 0 為基準)。

paragraphStartIndex int?

The zero-based starting paragraph index for PPTX paragraph animation. / PPTX 逐段落動畫的起始段落索引(以 0 為基準)。

paragraphEndIndex int?

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

string

Duration

Gets the raw duration value. 取得持續時間原文。

public string? Duration { get; }

Property Value

string

Effect

Gets the animation effect type. 取得動畫效果類型。

public OdfAnimationEffect Effect { get; }

Property Value

OdfAnimationEffect

Kind

Gets the animation kind. 取得動畫種類。

public OdfAnimationKind Kind { get; }

Property Value

OdfAnimationKind

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

string

SequenceIndex

Gets the order index in the slide animation sequence. 取得在投影片動畫序列中的順序索引。

public int SequenceIndex { get; }

Property Value

int

TargetElementId

Gets the target shape identifier. 取得目標圖形識別碼。

public string TargetElementId { get; }

Property Value

string

Trigger

Gets the animation trigger mode. 取得動畫觸發方式。

public OdfAnimationTrigger Trigger { get; }

Property Value

OdfAnimationTrigger

Methods

TryGetDelaySeconds(out double)

Attempts to parse the delay offset in Begin as seconds. 嘗試將 Begin 中的延遲偏移解析為秒數。

public bool TryGetDelaySeconds(out double seconds)

Parameters

seconds double

The parsed delay seconds when successful. / 解析成功時傳回的延遲秒數。

Returns

bool

true when parsing succeeds. / 若可解析則為 true

Remarks

Only numeric seconds or prev.end+Ns forms are supported. 僅支援純數值秒或 prev.end+Ns 形式。

TryGetDurationSeconds(out double)

Attempts to parse Duration as seconds. 嘗試將 Duration 解析為秒數。

public bool TryGetDurationSeconds(out double seconds)

Parameters

seconds double

The parsed seconds when successful. / 解析成功時傳回的秒數。

Returns

bool

true when parsing succeeds. / 若可解析則為 true