Table of Contents

Class OdfPresentationPageLayout

Namespace
OdfKit.Presentation
Assembly
OdfKit.dll

Represents a presentation page layout. 表示簡報頁面版面配置的類別。

public class OdfPresentationPageLayout
Inheritance
OdfPresentationPageLayout
Inherited Members

Constructors

OdfPresentationPageLayout(OdfNode)

Represents a presentation page layout. 表示簡報頁面版面配置的類別。

public OdfPresentationPageLayout(OdfNode node)

Parameters

node OdfNode

The underlying OdfKit.DOM.OdfNode instance. / 底層的 OdfKit.DOM.OdfNode 執行個體。

Properties

Name

Gets or sets the presentation page layout name. 取得或設定簡報頁面版面配置的名稱。

public string Name { get; set; }

Property Value

string

Placeholders

Gets the read-only list of placeholder templates. 取得預留位置範本的唯讀清單。

public IReadOnlyList<OdfPlaceholderTemplate> Placeholders { get; }

Property Value

IReadOnlyList<OdfPlaceholderTemplate>

Methods

AddPlaceholder(OdfPlaceholderType, OdfLength, OdfLength, OdfLength, OdfLength)

Adds a placeholder template. 新增預留位置範本。

public OdfPlaceholderTemplate AddPlaceholder(OdfPlaceholderType type, OdfLength x, OdfLength y, OdfLength w, OdfLength h)

Parameters

type OdfPlaceholderType

The placeholder type. / 預留位置型態。

x OdfLength

The X-axis coordinate position. / X 軸座標位置。

y OdfLength

The Y-axis coordinate position. / Y 軸座標位置。

w OdfLength

The width. / 寬度。

h OdfLength

The height. / 高度。

Returns

OdfPlaceholderTemplate

The added placeholder template instance. / 新增的預留位置範本執行個體。

RemovePlaceholder(OdfPlaceholderType)

Removes placeholder templates of the specified type. 移除指定型態的預留位置範本。

public bool RemovePlaceholder(OdfPlaceholderType type)

Parameters

type OdfPlaceholderType

The placeholder type to remove. / 要移除的預留位置型態。

Returns

bool

true if at least one placeholder was removed; otherwise, false. / 若已移除至少一個預留位置則為 true;否則為 false