Table of Contents

Class OdfTextBox

Namespace
OdfKit.Presentation
Assembly
OdfKit.dll

Represents a text box shape in a slide. 表示投影片中的文字方塊圖形。

public class OdfTextBox : OdfShape
Inheritance
OdfTextBox
Inherited Members

Constructors

OdfTextBox(OdfNode, OdfDocument)

Initializes a new instance of the OdfTextBox class. 初始化 OdfTextBox 類別的新執行個體。

public OdfTextBox(OdfNode node, OdfDocument doc)

Parameters

node OdfNode

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

doc OdfDocument

The owning ODF document instance. / 所屬的 ODF 文件執行個體。

OdfTextBox(OdfNode, OdfDocument, OdfSlide?)

Represents a text box shape in a slide. 表示投影片中的文字方塊圖形。

public OdfTextBox(OdfNode node, OdfDocument doc, OdfSlide? slide)

Parameters

node OdfNode

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

doc OdfDocument

The owning document instance. / 所屬的文件執行個體。

slide OdfSlide

The owning slide instance, or null when the shape does not belong to a presentation slide. / 所屬的投影片執行個體,若不屬於簡報投影片則為 null

OdfTextBox(OdfNode, OdfSlide)

Initializes a new instance of the OdfTextBox class. 初始化 OdfTextBox 類別的新執行個體。

public OdfTextBox(OdfNode node, OdfSlide slide)

Parameters

node OdfNode

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

slide OdfSlide

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

Properties

Paragraphs

Gets the paragraph text list in the text box. 取得文字方塊中的段落文字清單。

public IReadOnlyList<string> Paragraphs { get; }

Property Value

IReadOnlyList<string>

Text

Gets the plain text content in the text box. 取得文字方塊中的純文字內容。

public string Text { get; }

Property Value

string

Remarks

Multiple paragraphs are joined with NewLine. 多段落會以 NewLine 串接。