Class ListDataValidationRule
Represents list data validation rule.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model.DataValidation
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public sealed class ListDataValidationRule : SingleArgumentDataValidationRuleBase, IDataValidationRule
Constructors
ListDataValidationRule(ListDataValidationRuleContext)
Initializes a new instance of the ListDataValidationRule class.
Declaration
public ListDataValidationRule(ListDataValidationRuleContext context)
Parameters
ListDataValidationRuleContext
context
The context. |
Properties
InCellDropdown
Gets or sets a value indicating if an cell dropdown should be shown.
Declaration
public bool InCellDropdown { get; set; }
Property Value
System.Boolean
The a value indicating if an cell dropdown should be shown. |
Methods
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The System.Object to compare with the current System.Object. |
Returns
System.Boolean
true if the specified System.Object is equal to the current System.Object; otherwise, false. |
Overrides
EvaluateOverride(Worksheet, Int32, Int32, ICellValue)
Evaluates the data validation rule.
Declaration
protected override bool EvaluateOverride(Worksheet worksheet, int rowIndex, int columnIndex, ICellValue cellValue)
Parameters
Worksheet
worksheet
The worksheet. |
System.Int32
rowIndex
Index of the row. |
System.Int32
columnIndex
Index of the column. |
ICellValue
cellValue
The cell value. |
Returns
System.Boolean
Retrurns True if the rule is satisfied, else returns False. |
Overrides
ExtractListItems(Worksheet, Int32, Int32)
Extracts the list items.
Declaration
public IEnumerable<string> ExtractListItems(Worksheet worksheet, int rowIndex, int columnIndex)
Parameters
Worksheet
worksheet
The worksheet. |
System.Int32
rowIndex
Index of the row. |
System.Int32
columnIndex
Index of the column. |
Returns
System.Collections.Generic.IEnumerable<System.String>
|
ExtractListItems(Worksheet, CellIndex)
Extracts the list items.
Declaration
public IEnumerable<string> ExtractListItems(Worksheet worksheet, CellIndex cellIndex)
Parameters
Worksheet
worksheet
The worksheet. |
CellIndex
cellIndex
Index of the cell. |
Returns
System.Collections.Generic.IEnumerable<System.String>
|
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for the current System.Object. |