Class
SingleArgumentDataValidationRuleBase

Abstract base for data validation rules that evaluate cell values using a single argument expression, with support for blank cell handling.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model.DataValidation

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public abstract class SingleArgumentDataValidationRuleBase : DataValidationRuleBase, IDataValidationRule

Inheritance: objectDataValidationRuleBaseSingleArgumentDataValidationRuleBase

Derived Classes: CustomDataValidationRuleListDataValidationRuleNumberDataValidationRuleBase

Implements: IDataValidationRule

Inherited Members DataValidationRuleBase.Evaluate(Worksheet, int, int, ICellValue)DataValidationRuleBase.EvaluateOverride(Worksheet, int, int, ICellValue)DataValidationRuleBase.ShowInputMessageDataValidationRuleBase.InputMessageTitleDataValidationRuleBase.InputMessageContentDataValidationRuleBase.ShowErrorMessageDataValidationRuleBase.ErrorStyleDataValidationRuleBase.ErrorAlertTitleDataValidationRuleBase.ErrorAlertContent

Constructors

SingleArgumentDataValidationRuleBase(SingleArgumentDataValidationRuleContext)

Initializes a new SingleArgumentDataValidationRuleBase from the specified single-argument validation context.

Declaration

cs-api-definition
protected SingleArgumentDataValidationRuleBase(SingleArgumentDataValidationRuleContext context)

Parameters

context

SingleArgumentDataValidationRuleContext

The context.

Properties

Argument1

Primary validation criterion expression or value used to evaluate cell validity.

Declaration

cs-api-definition
public ICellValue Argument1 { get; }

Property Value

ICellValue

The first argument.

CellIndex

Cell location where the validation rule is defined, used as the base reference for relative formula expressions.

Declaration

cs-api-definition
public CellIndex CellIndex { get; }

Property Value

CellIndex

The index of the cell.

IgnoreBlank

Controls whether empty cells bypass validation and are considered valid regardless of the rule.

Declaration

cs-api-definition
public bool IgnoreBlank { get; }

Property Value

bool

The value indicating if blank cells should be ignored.

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Overrides DataValidationRuleBase.Equals(object)

GetHashCode()

Computes a hash code for this validation rule based on its configuration properties.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides DataValidationRuleBase.GetHashCode()