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
sheetNamestringThe containing sheet name. / 所在工作表名稱。
anchorAddressstringThe chart anchor cell address string. / 圖表錨定儲存格位址字串。
objectPathstringThe embedded chart subpackage path, such as
Object 1/. / 嵌入圖表子封裝路徑,例如Object 1/。chartTypeOdfChartTypeThe chart type. / 圖表類型。
titlestringThe chart title. / 圖表標題。
dataRangeAddressstringThe data range address string. / 資料範圍位址字串。
Properties
AnchorAddress
Gets the chart anchor cell address string. 取得圖表錨定儲存格位址字串。
public string AnchorAddress { get; }
Property Value
ChartType
Gets the chart type. 取得圖表類型。
public OdfChartType ChartType { get; }
Property Value
DataRangeAddress
Gets the data range address string. 取得資料範圍位址字串。
public string? DataRangeAddress { get; }
Property Value
ObjectPath
Gets the embedded chart subpackage path. 取得嵌入圖表子封裝路徑。
public string ObjectPath { get; }
Property Value
SheetName
Gets the containing sheet name. 取得所在工作表名稱。
public string SheetName { get; }
Property Value
Title
Gets the chart title. 取得圖表標題。
public string? Title { get; }
Property Value
Methods
TryGetAnchorAddress(out OdfCellAddress)
Attempts to parse AnchorAddress as an OdfCellAddress. 嘗試將 AnchorAddress 解析為 OdfCellAddress。
public bool TryGetAnchorAddress(out OdfCellAddress address)
Parameters
addressOdfCellAddressThe cell address returned when parsing succeeds. / 解析成功時傳回的儲存格位址。
Returns
TryGetDataRange(out OdfCellRange)
Attempts to parse DataRangeAddress as an OdfCellRange. 嘗試將 DataRangeAddress 解析為 OdfCellRange。
public bool TryGetDataRange(out OdfCellRange range)
Parameters
rangeOdfCellRangeThe cell range returned when parsing succeeds. / 解析成功時傳回的儲存格範圍。