Table of Contents

Class OdfEmbeddedChartInfo

Namespace
OdfKit.Spreadsheet
Assembly
OdfKit.dll

Represents summary information for an embedded chart in a worksheet. 表示工作表中一個嵌入圖表的摘要資訊。

public sealed class OdfEmbeddedChartInfo
Inheritance
OdfEmbeddedChartInfo
Inherited Members

Constructors

OdfEmbeddedChartInfo(string, string, string, OdfChartType, string?, string?)

Represents summary information for an embedded chart in a worksheet. 表示工作表中一個嵌入圖表的摘要資訊。

public OdfEmbeddedChartInfo(string sheetName, string anchorAddress, string objectPath, OdfChartType chartType, string? title, string? dataRangeAddress)

Parameters

sheetName string

The containing sheet name. / 所在工作表名稱。

anchorAddress string

The chart anchor cell address string. / 圖表錨定儲存格位址字串。

objectPath string

The embedded chart subpackage path, such as Object 1/. / 嵌入圖表子封裝路徑,例如 Object 1/

chartType OdfChartType

The chart type. / 圖表類型。

title string

The chart title. / 圖表標題。

dataRangeAddress string

The data range address string. / 資料範圍位址字串。

Properties

AnchorAddress

Gets the chart anchor cell address string. 取得圖表錨定儲存格位址字串。

public string AnchorAddress { get; }

Property Value

string

ChartType

Gets the chart type. 取得圖表類型。

public OdfChartType ChartType { get; }

Property Value

OdfChartType

DataRangeAddress

Gets the data range address string. 取得資料範圍位址字串。

public string? DataRangeAddress { get; }

Property Value

string

ObjectPath

Gets the embedded chart subpackage path. 取得嵌入圖表子封裝路徑。

public string ObjectPath { get; }

Property Value

string

SheetName

Gets the containing sheet name. 取得所在工作表名稱。

public string SheetName { get; }

Property Value

string

Title

Gets the chart title. 取得圖表標題。

public string? Title { get; }

Property Value

string

Methods

TryGetAnchorAddress(out OdfCellAddress)

Attempts to parse AnchorAddress as an OdfCellAddress. 嘗試將 AnchorAddress 解析為 OdfCellAddress

public bool TryGetAnchorAddress(out OdfCellAddress address)

Parameters

address OdfCellAddress

The cell address returned when parsing succeeds. / 解析成功時傳回的儲存格位址。

Returns

bool

true if parsing succeeds. / 若解析成功則為 true

TryGetDataRange(out OdfCellRange)

Attempts to parse DataRangeAddress as an OdfCellRange. 嘗試將 DataRangeAddress 解析為 OdfCellRange

public bool TryGetDataRange(out OdfCellRange range)

Parameters

range OdfCellRange

The cell range returned when parsing succeeds. / 解析成功時傳回的儲存格範圍。

Returns

bool

true if parsing succeeds. / 若解析成功則為 true