Validates that cell input matches one of the values in a specified list or range.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model.DataValidation
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public sealed class ListDataValidationRule : SingleArgumentDataValidationRuleBase, IDataValidationRule
Inheritance: objectDataValidationRuleBaseSingleArgumentDataValidationRuleBaseListDataValidationRule
Implements:
Inherited Members
Constructors
Initializes a new ListDataValidationRule with the specified list source and dropdown settings.
public ListDataValidationRule(ListDataValidationRuleContext context)
The context.
Methods
Evaluates whether the specified cell value matches any item in the list.
protected override bool EvaluateOverride(Worksheet worksheet, int rowIndex, int columnIndex, ICellValue cellValue)
The worksheet.
rowIndexintIndex of the row.
columnIndexintIndex of the column.
cellValueICellValueThe cell value.
Returns:Retrurns True if the rule is satisfied, else returns False.
Overrides:
Properties
Controls whether a dropdown arrow appears in the cell to display available list values.
public bool InCellDropdown { get; set; }
The a value indicating if an cell dropdown should be shown.