Class OdfStyleSet
Provides the OdfStyleSet API. 表示高階文件 builder 可共用的樣式集合。
public sealed class OdfStyleSet
- Inheritance
-
OdfStyleSet
- Inherited Members
Constructors
OdfStyleSet()
public OdfStyleSet()
Properties
BodyColor
Gets the BodyColor value. 取得或設定內文文字色彩。
public string? BodyColor { get; set; }
Property Value
BodyFontSizePoints
Gets the BodyFontSizePoints value. 取得或設定內文文字大小(點)。
public double? BodyFontSizePoints { get; set; }
Property Value
BusinessReport
Performs business report. 取得適合商業報告的內建樣式集合。
public static OdfStyleSet BusinessReport { get; }
Property Value
HeadingColor
Gets the HeadingColor value. 取得或設定標題文字色彩。
public string? HeadingColor { get; set; }
Property Value
HeadingFontSizePoints
Gets the HeadingFontSizePoints value. 取得或設定標題文字大小(點)。
public double? HeadingFontSizePoints { get; set; }
Property Value
TableHeaderBackgroundColor
Gets the TableHeaderBackgroundColor value. 取得或設定表格首列背景色彩。
public string? TableHeaderBackgroundColor { get; set; }
Property Value
TableHeaderBold
Gets a value indicating the TableHeaderBold state. 取得或設定表格首列文字是否使用粗體。
public bool TableHeaderBold { get; set; }
Property Value
TableHeaderColor
Gets the TableHeaderColor value. 取得或設定表格首列文字色彩。
public string? TableHeaderColor { get; set; }
Property Value
Methods
FromTheme(OdfDesignTheme)
Creates from theme. 從設計主題建立適合 ODT / ODS 內容 builder 使用的樣式集合。
public static OdfStyleSet FromTheme(OdfDesignTheme theme)
Parameters
themeOdfDesignTheme設計主題
Returns
- OdfStyleSet
由設計主題推導出的樣式集合
GetChartPaletteColor(int)
Gets chart palette color. 依序列索引取得圖表色盤色彩。
public string GetChartPaletteColor(int index)
Parameters
indexint序列索引
Returns
- string
對應的圖表色彩
WithBodyColor(string?)
Performs with body color. 設定內文文字色彩。
public OdfStyleSet WithBodyColor(string? color)
Parameters
colorstring色彩值
Returns
- OdfStyleSet
目前樣式集合執行個體
WithBodyFontSize(double?)
Performs with body font size. 設定內文文字大小。
public OdfStyleSet WithBodyFontSize(double? points)
Parameters
pointsdouble?字級點數
Returns
- OdfStyleSet
目前樣式集合執行個體
WithChartPaletteColors(params string[])
Performs with chart palette colors. 取代圖表序列使用的色彩序列。
public OdfStyleSet WithChartPaletteColors(params string[] colors)
Parameters
colorsstring[]色彩序列
Returns
- OdfStyleSet
目前樣式集合執行個體
WithHeadingColor(string?)
Performs with heading color. 設定標題文字色彩。
public OdfStyleSet WithHeadingColor(string? color)
Parameters
colorstring色彩值
Returns
- OdfStyleSet
目前樣式集合執行個體
WithHeadingFontSize(double?)
Performs with heading font size. 設定標題文字大小。
public OdfStyleSet WithHeadingFontSize(double? points)
Parameters
pointsdouble?字級點數
Returns
- OdfStyleSet
目前樣式集合執行個體
WithTableHeaderBackgroundColor(string?)
Performs with table header background color. 設定表格首列背景色彩。
public OdfStyleSet WithTableHeaderBackgroundColor(string? color)
Parameters
colorstring色彩值
Returns
- OdfStyleSet
目前樣式集合執行個體
WithTableHeaderBold(bool)
Performs with table header bold. 設定表格首列文字是否使用粗體。
public OdfStyleSet WithTableHeaderBold(bool enabled)
Parameters
Returns
- OdfStyleSet
目前樣式集合執行個體
WithTableHeaderColor(string?)
Performs with table header color. 設定表格首列文字色彩。
public OdfStyleSet WithTableHeaderColor(string? color)
Parameters
colorstring色彩值
Returns
- OdfStyleSet
目前樣式集合執行個體