Class OdfChartDataLabelInfo
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
showValueboolWhether to show the data value. / 是否顯示資料數值。
showPercentageboolWhether to show the percentage. / 是否顯示百分比。
showCategoryNameboolWhether to show the category name. / 是否顯示分類名稱。
showLegendKeyboolWhether to show the legend key. / 是否顯示圖例符號。
Properties
ShowCategoryName
Gets whether to show the category name. 取得是否顯示分類名稱。
public bool ShowCategoryName { get; }
Property Value
ShowLegendKey
Gets whether to show the legend key. 取得是否顯示圖例符號。
public bool ShowLegendKey { get; }
Property Value
ShowPercentage
Gets whether to show the percentage. 取得是否顯示百分比。
public bool ShowPercentage { get; }
Property Value
ShowValue
Gets whether to show the data value. 取得是否顯示資料數值。
public bool ShowValue { get; }
Property Value
Methods
FromPreset(OdfChartDataLabelPreset)
Creates a data label setting from a common preset combination. 依常用預設組合建立資料標籤設定。
public static OdfChartDataLabelInfo FromPreset(OdfChartDataLabelPreset preset)
Parameters
presetOdfChartDataLabelPresetThe data label preset combination. / 資料標籤預設組合。
Returns
- OdfChartDataLabelInfo
The corresponding data label setting. / 對應的資料標籤設定。