Table of Contents

Class OdfSparklineInfo

Namespace
OdfKit.Spreadsheet
Assembly
OdfKit.dll

Represents a sparkline in a LibreOffice calcext sparkline group. 表示 LibreOffice calcext 走勢圖群組內的一筆走勢圖。

public sealed class OdfSparklineInfo
Inheritance
OdfSparklineInfo
Inherited Members

Constructors

OdfSparklineInfo(string, string)

Represents a sparkline in a LibreOffice calcext sparkline group. 表示 LibreOffice calcext 走勢圖群組內的一筆走勢圖。

public OdfSparklineInfo(string dataRangeRef, string hostCellRef)

Parameters

dataRangeRef string

The data source range address from calcext:dataRangeRef. / 資料來源範圍位址(calcext:dataRangeRef)。

hostCellRef string

The cell address that displays the sparkline from calcext:hostCellRef. / 顯示走勢圖的儲存格位址(calcext:hostCellRef)。

Properties

DataRangeRef

Gets the data source range address. 取得資料來源範圍位址。

public string DataRangeRef { get; }

Property Value

string

HostCellRef

Gets the cell address that displays the sparkline. 取得顯示走勢圖的儲存格位址。

public string HostCellRef { get; }

Property Value

string

Methods

TryGetDataRange(out OdfCellRange)

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

public bool TryGetDataRange(out OdfCellRange range)

Parameters

range OdfCellRange

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

Returns

bool

true if parsing succeeds; otherwise, false. / 若解析成功則為 true,否則為 false

TryGetHostCell(out OdfCellAddress)

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

public bool TryGetHostCell(out OdfCellAddress address)

Parameters

address OdfCellAddress

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

Returns

bool

true if parsing succeeds; otherwise, false. / 若解析成功則為 true,否則為 false