Table of Contents

Class OdfChartDataLabelInfo

Namespace
OdfKit.Chart
Assembly
OdfKit.dll

Represents the data label settings for a chart data series. 表示圖表資料序列的數據標籤設定。

public sealed class OdfChartDataLabelInfo
Inheritance
OdfChartDataLabelInfo
Inherited Members

Constructors

OdfChartDataLabelInfo(bool, bool, bool, bool)

Represents the data label settings for a chart data series. 表示圖表資料序列的數據標籤設定。

public OdfChartDataLabelInfo(bool showValue = false, bool showPercentage = false, bool showCategoryName = false, bool showLegendKey = false)

Parameters

showValue bool

Whether to show the data value. / 是否顯示資料數值。

showPercentage bool

Whether to show the percentage. / 是否顯示百分比。

showCategoryName bool

Whether to show the category name. / 是否顯示分類名稱。

showLegendKey bool

Whether to show the legend key. / 是否顯示圖例符號。

Properties

ShowCategoryName

Gets whether to show the category name. 取得是否顯示分類名稱。

public bool ShowCategoryName { get; }

Property Value

bool

ShowLegendKey

Gets whether to show the legend key. 取得是否顯示圖例符號。

public bool ShowLegendKey { get; }

Property Value

bool

ShowPercentage

Gets whether to show the percentage. 取得是否顯示百分比。

public bool ShowPercentage { get; }

Property Value

bool

ShowValue

Gets whether to show the data value. 取得是否顯示資料數值。

public bool ShowValue { get; }

Property Value

bool

Methods

FromPreset(OdfChartDataLabelPreset)

Creates a data label setting from a common preset combination. 依常用預設組合建立資料標籤設定。

public static OdfChartDataLabelInfo FromPreset(OdfChartDataLabelPreset preset)

Parameters

preset OdfChartDataLabelPreset

The data label preset combination. / 資料標籤預設組合。

Returns

OdfChartDataLabelInfo

The corresponding data label setting. / 對應的資料標籤設定。