Table of Contents

Class OdfDatabaseRange

Namespace
OdfKit.Spreadsheet
Assembly
OdfKit.dll

Represents a database range in an ODF spreadsheet. 表示 ODF 試算表中的資料庫範圍。

public class OdfDatabaseRange
Inheritance
OdfDatabaseRange
Inherited Members

Remarks

Initializes a new instance of the OdfDatabaseRange class. 初始化 OdfDatabaseRange 類別的新執行個體。

Constructors

OdfDatabaseRange(OdfNode, SpreadsheetDocument)

Represents a database range in an ODF spreadsheet. 表示 ODF 試算表中的資料庫範圍。

public OdfDatabaseRange(OdfNode node, SpreadsheetDocument doc)

Parameters

node OdfNode

The XML node. / XML 節點。

doc SpreadsheetDocument

The spreadsheet document. / 試算表文件。

Remarks

Initializes a new instance of the OdfDatabaseRange class. 初始化 OdfDatabaseRange 類別的新執行個體。

Properties

ContainsHeader

Gets or sets whether this database range treats the first row as labels. 取得或設定此資料庫範圍是否將第一列視為標籤。

public bool ContainsHeader { get; set; }

Property Value

bool

DisplayFilterButtons

Gets or sets whether auto-filter buttons are displayed. 取得或設定是否顯示自動篩選按鈕。

public bool DisplayFilterButtons { get; set; }

Property Value

bool

Name

Gets or sets the database range name. 取得或設定資料庫範圍的名稱。

public string Name { get; set; }

Property Value

string

Node

Gets the XML node of the database range. 取得資料庫範圍的 XML 節點。

public OdfNode Node { get; }

Property Value

OdfNode

TargetRangeAddress

Gets or sets the target range address. 取得或設定目標範圍位址。

public string TargetRangeAddress { get; set; }

Property Value

string

Methods

SetFilter(params (int fieldNumber, string op, string value)[])

Sets filter conditions for this database range. 設定此資料庫範圍的篩選條件。

public void SetFilter(params (int fieldNumber, string op, string value)[] conditions)

Parameters

conditions (int fieldNumber, string op, string value)[]

The filter condition array, containing field numbers, operators, and values. / 篩選條件陣列,包含欄位編號、運算子與值。

SetSort(params (int fieldNumber, bool ascending)[])

Sets sort rules for this database range. 設定此資料庫範圍的排序規則。

public void SetSort(params (int fieldNumber, bool ascending)[] rules)

Parameters

rules (int fieldNumber, bool ascending)[]

The sort rule array, containing field numbers and whether each field is ascending. / 排序規則陣列,包含欄位編號與是否遞增。