Table of Contents

Class OdfRichTextRunOptions

Namespace
OdfKit.Spreadsheet
Assembly
OdfKit.dll

Configures formatting for a single rich-text run. 設定單一富文字片段的格式。

public sealed class OdfRichTextRunOptions
Inheritance
OdfRichTextRunOptions
Inherited Members

Remarks

Prefer this options object over multi-optional parameter lists for new call sites. 新呼叫端請優先使用此 options 物件,避免多個尾端可選參數。

Constructors

OdfRichTextRunOptions()

public OdfRichTextRunOptions()

Properties

Bold

Gets or sets whether the run is bold. 取得或設定是否套用粗體。

public bool Bold { get; set; }

Property Value

bool

Color

Gets or sets the text color; null inherits the default color. 取得或設定文字色彩;null 表示繼承預設色彩。

public OdfColor? Color { get; set; }

Property Value

OdfColor?

Default

Gets the default formatting options (no emphasis). 取得預設格式選項(無強調樣式)。

public static OdfRichTextRunOptions Default { get; }

Property Value

OdfRichTextRunOptions

FontFamily

Gets or sets the font family name; null indicates inheritance. 取得或設定字型家族名稱;null 表示繼承。

public string? FontFamily { get; set; }

Property Value

string

Italic

Gets or sets whether the run is italic. 取得或設定是否套用斜體。

public bool Italic { get; set; }

Property Value

bool

Underline

Gets or sets whether the run is underlined. 取得或設定是否套用底線。

public bool Underline { get; set; }

Property Value

bool