Table of Contents

Class OdfCellRichTextBuilder

Namespace
OdfKit.Spreadsheet
Assembly
OdfKit.dll

Builds rich text runs for spreadsheet cells with a fluent API. 提供儲存格富文字的鏈式建構 API。

public sealed class OdfCellRichTextBuilder
Inheritance
OdfCellRichTextBuilder
Inherited Members

Methods

Append(string)

Appends a plain text run with default formatting. 以預設格式追加一段文字。

public OdfCellRichTextBuilder Append(string text)

Parameters

text string

The text to append. / 要追加的文字。

Returns

OdfCellRichTextBuilder

The current builder for chaining. / 目前建構器,方便鏈式呼叫。

Append(string, OdfRichTextRunOptions)

Appends a text run using an options object. 以 options 物件追加一段文字。

public OdfCellRichTextBuilder Append(string text, OdfRichTextRunOptions options)

Parameters

text string

The text to append. / 要追加的文字。

options OdfRichTextRunOptions

The run formatting options. / 片段格式選項。

Returns

OdfCellRichTextBuilder

The current builder for chaining. / 目前建構器,方便鏈式呼叫。

Clear()

Clears the current rich text content of the cell. 清除目前儲存格富文字內容。

public OdfCellRichTextBuilder Clear()

Returns

OdfCellRichTextBuilder

The current builder for chaining. / 目前建構器,方便鏈式呼叫。

LineBreak()

Appends a line break. 追加一個換行。

public OdfCellRichTextBuilder LineBreak()

Returns

OdfCellRichTextBuilder

The current builder for chaining. / 目前建構器,方便鏈式呼叫。

Set(OdfRichText)

Replaces the current cell text with the specified rich text content. 以指定富文字內容取代目前儲存格文字。

public OdfCellRichTextBuilder Set(OdfRichText richText)

Parameters

richText OdfRichText

The new rich text content. / 新的富文字內容。

Returns

OdfCellRichTextBuilder

The current builder for chaining. / 目前建構器,方便鏈式呼叫。