Class OdfSpreadsheetTable
- Namespace
- OdfKit.Spreadsheet
- Assembly
- OdfKit.dll
Represents a practical spreadsheet table backed by a database range. 表示由資料庫範圍支援的實務試算表表格。
public sealed class OdfSpreadsheetTable
- Inheritance
-
OdfSpreadsheetTable
- Inherited Members
Properties
DisplayFilterButtons
Gets or sets whether filter buttons are displayed. 取得或設定是否顯示篩選按鈕。
public bool DisplayFilterButtons { get; set; }
Property Value
FirstRowAsHeader
Gets whether the first row is treated as a header row. 取得首列是否視為標題列。
public bool FirstRowAsHeader { get; }
Property Value
Name
Gets or sets the table name. 取得或設定表格名稱。
public string Name { get; set; }
Property Value
TargetRangeAddress
Gets the target range address. 取得目標範圍位址。
public string TargetRangeAddress { get; }
Property Value
Methods
ApplyFilter(params OdfDatabaseFilterConditionInfo[])
Applies filter conditions to the table metadata. 將篩選條件套用至表格 metadata。
public void ApplyFilter(params OdfDatabaseFilterConditionInfo[] conditions)
Parameters
conditionsOdfDatabaseFilterConditionInfo[]The filter conditions. / 篩選條件。
ApplyFilter(string, string, string)
Applies a filter condition by resolving a header name. 依標題名稱解析欄位並套用篩選條件。
public void ApplyFilter(string columnName, string op, string value)
Parameters
columnNamestringThe header name. / 標題名稱。
opstringThe ODF filter operator. / ODF 篩選運算子。
valuestringThe filter value. / 篩選值。
ApplySort(params OdfDatabaseSortRuleInfo[])
Applies sort rules to the table metadata. 將排序規則套用至表格 metadata。
public void ApplySort(params OdfDatabaseSortRuleInfo[] rules)
Parameters
rulesOdfDatabaseSortRuleInfo[]The sort rules. / 排序規則。
ApplySort(string)
Short overload of ApplySort that accepts columnName; remaining optional parameters use defaults and forward to the full overload. 便利多載:提供 columnName;其餘可選參數使用預設值並轉呼叫最長 ApplySort 多載。
public void ApplySort(string columnName)
Parameters
columnNamestring
ApplySort(string, bool)
Applies a sort rule by resolving a header name. 依標題名稱解析欄位並套用排序規則。
public void ApplySort(string columnName, bool ascending)
Parameters
columnNamestringThe header name. / 標題名稱。
ascendingboolWhether the sort order is ascending. / 是否遞增排序。
ClearFilter()
Removes filter conditions from the table metadata. 從表格 metadata 移除篩選條件。
public void ClearFilter()
ClearSort()
Removes sort rules from the table metadata. 從表格 metadata 移除排序規則。
public void ClearSort()
GetColumnIndex(string)
Gets the zero-based table field index for the specified header name. 依指定標題名稱取得 0 基準的表格欄位索引。
public int GetColumnIndex(string columnName)
Parameters
columnNamestringThe header name to resolve. / 要解析的標題名稱。
Returns
- int
The zero-based field index, or -1 when not found. / 0 基準欄位索引;找不到時為 -1。
Resize(OdfCellRange)
Resizes the table metadata to the specified range. 將表格 metadata 調整為指定範圍。
public void Resize(OdfCellRange range)
Parameters
rangeOdfCellRangeThe new cell range. / 新儲存格範圍。