Class OdfDatabaseRangeInfo
- Namespace
- OdfKit.Spreadsheet
- Assembly
- OdfKit.dll
Represents summary information for a database range in a spreadsheet. 表示試算表中一個資料庫範圍的摘要資訊。
public sealed class OdfDatabaseRangeInfo
- Inheritance
-
OdfDatabaseRangeInfo
- Inherited Members
Constructors
OdfDatabaseRangeInfo(string, string, bool, bool, IReadOnlyList<OdfDatabaseFilterConditionInfo>, IReadOnlyList<OdfDatabaseSortRuleInfo>)
Represents summary information for a database range in a spreadsheet. 表示試算表中一個資料庫範圍的摘要資訊。
public OdfDatabaseRangeInfo(string name, string targetRangeAddress, bool displayFilterButtons, bool containsHeader, IReadOnlyList<OdfDatabaseFilterConditionInfo> filterConditions, IReadOnlyList<OdfDatabaseSortRuleInfo> sortRules)
Parameters
namestringThe database range name. / 資料庫範圍名稱。
targetRangeAddressstringThe target range address string from
table:target-range-address. / 目標範圍位址字串(table:target-range-address)。displayFilterButtonsboolWhether to display auto-filter buttons. / 是否顯示自動篩選按鈕。
containsHeaderboolWhether the first row is treated as labels. / 第一列是否視為標籤。
filterConditionsIReadOnlyList<OdfDatabaseFilterConditionInfo>The filter condition list. / 篩選條件清單。
sortRulesIReadOnlyList<OdfDatabaseSortRuleInfo>The sort rule list. / 排序規則清單。
Properties
ContainsHeader
Gets whether the first row is treated as labels. 取得第一列是否視為標籤。
public bool ContainsHeader { get; }
Property Value
DisplayFilterButtons
Gets whether auto-filter buttons are displayed. 取得是否顯示自動篩選按鈕。
public bool DisplayFilterButtons { get; }
Property Value
FilterConditions
Gets the filter condition list. 取得篩選條件清單。
public IReadOnlyList<OdfDatabaseFilterConditionInfo> FilterConditions { get; }
Property Value
Name
Gets the database range name. 取得資料庫範圍名稱。
public string Name { get; }
Property Value
SortRules
Gets the sort rule list. 取得排序規則清單。
public IReadOnlyList<OdfDatabaseSortRuleInfo> SortRules { get; }
Property Value
TargetRangeAddress
Gets the target range address string. 取得目標範圍位址字串。
public string TargetRangeAddress { get; }
Property Value
Methods
TryGetTargetRange(out OdfCellRange)
Attempts to parse TargetRangeAddress as an OdfCellRange. 嘗試將 TargetRangeAddress 解析為 OdfCellRange。
public bool TryGetTargetRange(out OdfCellRange range)
Parameters
rangeOdfCellRangeThe cell range returned when parsing succeeds. / 解析成功時傳回的儲存格範圍。