Represents a data validation rule that can be applied to a range of cells.
Object
Namespace: Radzen.Documents.Spreadsheet
Assembly: Radzen.Blazor.dll
public class DataValidationRule : Documents.Spreadsheet.ICellValidatorRepresents a data validation rule that can be applied to a range of cells.
public DataValidationRule()Gets or sets whether blank cells are allowed.
public bool AllowBlank { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether blank cells are allowed. |
Gets or sets the error message.
public string Error { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the error message. |
Gets or sets the error style.
public Documents.Spreadsheet.DataValidationErrorStyle ErrorStyle { get; set; }
| Type | Description |
|---|---|
| Documents.Spreadsheet.DataValidationErrorStyle | Gets or sets the error style. |
Gets or sets the error dialog title.
public string ErrorTitle { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the error dialog title. |
Gets or sets the first formula or value for comparison.
public string Formula1 { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the first formula or value for comparison. |
Gets or sets the second formula or value for comparison (used with Between/NotBetween).
public string Formula2 { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the second formula or value for comparison (used with Between/NotBetween). |
Gets or sets the input message.
public string InputMessage { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the input message. |
Gets or sets the input message title.
public string InputTitle { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the input message title. |
Gets the list items for List type validation, parsed from Formula1.
public IReadOnlyList<string> ListItems { get; }
| Type | Description |
|---|---|
| IReadOnlyList<string> | Gets the list items for List type validation, parsed from Formula1. |
Gets or sets the comparison operator.
public Documents.Spreadsheet.DataValidationOperator Operator { get; set; }
| Type | Description |
|---|---|
| Documents.Spreadsheet.DataValidationOperator | Gets or sets the comparison operator. |
Gets or sets whether to show the error message.
public bool ShowErrorMessage { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether to show the error message. |
Gets or sets whether to show the input message.
public bool ShowInputMessage { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether to show the input message. |
Gets or sets the type of data validation.
public Documents.Spreadsheet.DataValidationType Type { get; set; }
| Type | Description |
|---|---|
| Documents.Spreadsheet.DataValidationType | Gets or sets the type of data validation. |
Gets the list items for List type validation, resolving cell range references from the given sheet.
public IReadOnlyList<string> GetListItems(Documents.Spreadsheet.Worksheet sheet)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.Worksheet | sheet |
| Type | Description |
|---|---|
| IReadOnlyList<string> |
public bool Validate(Documents.Spreadsheet.Cell cell)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.Cell | cell |
| Type | Description |
|---|---|
| bool |
public bool Validate(Documents.Spreadsheet.Cell cell, Documents.Spreadsheet.CellRef rangeStart)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.Cell | cell | |
| Documents.Spreadsheet.CellRef | rangeStart |
| Type | Description |
|---|---|
| bool |