Class OdfDataValidationInfo
- Namespace
- OdfKit.Spreadsheet
- Assembly
- OdfKit.dll
Represents summary information for a data validation rule in a spreadsheet. 表示試算表中一筆資料驗證規則的摘要資訊。
public sealed class OdfDataValidationInfo
- Inheritance
-
OdfDataValidationInfo
- Inherited Members
Constructors
OdfDataValidationInfo(string, string, string?, string?, string?, IReadOnlyList<OdfCellRange>)
Represents summary information for a data validation rule in a spreadsheet. 表示試算表中一筆資料驗證規則的摘要資訊。
public OdfDataValidationInfo(string name, string conditionExpression, string? errorMessage, string? errorTitle, string? alertStyle, IReadOnlyList<OdfCellRange> appliedRanges)
Parameters
namestringThe rule name from
table:name. / 規則名稱(table:name)。conditionExpressionstringThe original condition expression from
table:condition. / 條件運算式原文(table:condition)。errorMessagestringThe error message content. / 錯誤訊息內容。
errorTitlestringThe error message title. / 錯誤訊息標題。
alertStylestringThe alert style, such as
stop,warning, orinformation. / 警告樣式(stop、warning、information)。appliedRangesIReadOnlyList<OdfCellRange>The list of cell ranges to which this rule applies. / 套用此規則的儲存格範圍清單。
Properties
AlertStyle
Gets the alert style. 取得警告樣式。
public string? AlertStyle { get; }
Property Value
AppliedRanges
Gets the list of cell ranges to which this rule applies. 取得套用此規則的儲存格範圍清單。
public IReadOnlyList<OdfCellRange> AppliedRanges { get; }
Property Value
ConditionExpression
Gets the original condition expression. 取得條件運算式原文。
public string ConditionExpression { get; }
Property Value
ErrorMessage
Gets the error message content. 取得錯誤訊息內容。
public string? ErrorMessage { get; }
Property Value
ErrorTitle
Gets the error message title. 取得錯誤訊息標題。
public string? ErrorTitle { get; }
Property Value
Name
Gets the rule name. 取得規則名稱。
public string Name { get; }
Property Value
Methods
TryGetCondition(out OdfValidationCondition)
Attempts to map ConditionExpression to OdfValidationCondition. 嘗試將 ConditionExpression 對應至 OdfValidationCondition。
public bool TryGetCondition(out OdfValidationCondition condition)
Parameters
conditionOdfValidationConditionThe condition type returned when parsing succeeds. / 解析成功時傳回的條件類型。