Table of Contents

Class OdfNotesPage

Namespace
OdfKit.Presentation
Assembly
OdfKit.dll

Represents a speaker notes page for a slide. 表示投影片備忘錄頁面(Speaker Notes Page)的類別。

public class OdfNotesPage
Inheritance
OdfNotesPage
Inherited Members

Constructors

OdfNotesPage(OdfNode, OdfSlide)

Represents a speaker notes page for a slide. 表示投影片備忘錄頁面(Speaker Notes Page)的類別。

public OdfNotesPage(OdfNode node, OdfSlide slide)

Parameters

node OdfNode

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

slide OdfSlide

The owning slide instance. / 所屬的投影片執行個體。

Properties

MasterPageName

Gets or sets the master page name used by the notes page. 取得或設定備忘錄頁面所使用的母片名稱。

public string? MasterPageName { get; set; }

Property Value

string

Node

Gets the underlying ODF node. 取得底層的 ODF 節點。

public OdfNode Node { get; }

Property Value

OdfNode

Shapes

Gets a read-only list of all shapes on the notes page, excluding thumbnails. 取得備忘錄頁面上所有圖形(不含縮圖)的唯讀清單。

public IReadOnlyList<OdfShape> Shapes { get; }

Property Value

IReadOnlyList<OdfShape>

Slide

Gets the owning slide. 取得所屬的投影片。

public OdfSlide Slide { get; }

Property Value

OdfSlide

SpeakerNoteParagraphs

Gets the paragraph text of the speaker notes. 取得主講人備忘錄的段落文字。

public IReadOnlyList<string> SpeakerNoteParagraphs { get; }

Property Value

IReadOnlyList<string>

SpeakerNotesText

Gets or sets the text content of the speaker notes. 取得或設定主講人備忘錄的文字內容。

public string SpeakerNotesText { get; set; }

Property Value

string

Methods

AddPicture(byte[], OdfLength, OdfLength, OdfLength, OdfLength)

Short overload of AddPicture that accepts imageBytes, x, y, w, and h; remaining optional parameters use defaults and forward to the full overload. 便利多載:提供 imageBytes、x、y、w 與 h;其餘可選參數使用預設值並轉呼叫最長 AddPicture 多載。

public OdfPicture AddPicture(byte[] imageBytes, OdfLength x, OdfLength y, OdfLength w, OdfLength h)

Parameters

imageBytes byte[]
x OdfLength
y OdfLength
w OdfLength
h OdfLength

Returns

OdfPicture

AddPicture(byte[], OdfLength, OdfLength, OdfLength, OdfLength, string?)

Adds an image to the notes page. 在備忘錄頁面上新增圖片。

public OdfPicture AddPicture(byte[] imageBytes, OdfLength x, OdfLength y, OdfLength w, OdfLength h, string? altText)

Parameters

imageBytes byte[]

The image byte array. / 圖片的位元組陣列。

x OdfLength

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

y OdfLength

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

w OdfLength

The width. / 寬度。

h OdfLength

The height. / 高度。

altText string

The optional image alternative text. / 選用的圖片替代文字。

Returns

OdfPicture

The added picture shape instance. / 新增的圖片圖形執行個體。

AddShape(OdfShapeType, OdfLength, OdfLength, OdfLength, OdfLength)

Adds a basic shape to the notes page. 在備忘錄頁面上新增基本圖形。

public OdfShape AddShape(OdfShapeType shapeType, OdfLength x, OdfLength y, OdfLength w, OdfLength h)

Parameters

shapeType OdfShapeType

The shape type. / 圖形類型。

x OdfLength

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

y OdfLength

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

w OdfLength

The width. / 寬度。

h OdfLength

The height. / 高度。

Returns

OdfShape

The added shape instance. / 新增的圖形執行個體。

AddSlideThumbnail(OdfLength, OdfLength, OdfLength, OdfLength)

Adds a slide thumbnail to the notes page. 在備忘錄頁面上新增投影片縮圖。

public void AddSlideThumbnail(OdfLength x, OdfLength y, OdfLength w, OdfLength h)

Parameters

x OdfLength

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

y OdfLength

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

w OdfLength

The width. / 寬度。

h OdfLength

The height. / 高度。

AddTextBox(OdfLength, OdfLength, OdfLength, OdfLength, string)

Adds a text box to the notes page. 在備忘錄頁面上新增文字方塊。

public OdfTextBox AddTextBox(OdfLength x, OdfLength y, OdfLength w, OdfLength h, string text)

Parameters

x OdfLength

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

y OdfLength

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

w OdfLength

The width. / 寬度。

h OdfLength

The height. / 高度。

text string

The text content. / 文字內容。

Returns

OdfTextBox

The added text box shape instance. / 新增的文字方塊圖形執行個體。

SetSpeakerNotes(IEnumerable<string>)

Sets speaker notes text as multiple paragraphs. 以多段落形式設定主講人備忘錄文字。

public OdfNotesPage SetSpeakerNotes(IEnumerable<string> paragraphs)

Parameters

paragraphs IEnumerable<string>

The paragraph text collection. / 段落文字集合。

Returns

OdfNotesPage

The current notes page. / 目前備忘錄頁面。