Static
$tStatic
nextGets or sets the value which indicates whether a null, or blank, value is allowed to be set on a cell. True if a null value can be set on the cell; False otherwise.
Gets or sets the description which appears in the dialog box when an invalid value is applied to a cell in Microsoft Excel.
This value is only used when [[showErrorMessageForInvalidValue]] is True.
Note: the title cannot be more than 225 characters.
The description to show the user or null to use a default error description.[[ArgumentException]] Occurs when the specified value is longer than 225 characters.
[[errorMessageTitle]]
Gets or sets the title which appears in the dialog box when an invalid value is applied to a cell in Microsoft Excel.
This value is only used when [[showErrorMessageForInvalidValue]] is True.
Note: the title cannot be more than 32 characters.
The title to show the user or null to use a default error dialog title.[[ArgumentException]] Occurs when the specified value is longer than 32 characters.
[[errorMessageDescription]]
Gets or sets the value which indicates whether the value is allowed when it is invalid and which options are given to the user in the error dialog shown by Microsoft Excel.
This value is only used when [[showErrorMessageForInvalidValue]] is True.
[[InvalidEnumArgumentException]] Occurs when the value is not a member of the [[DataValidationErrorStyle]] enumeration.
[[showErrorMessageForInvalidValue]]
Gets or sets the description of the Japanese input rules.
[[InvalidEnumArgumentException]] Occurs when the value is not a member of the [[DataValidationImeMode]] enumeration.
Gets or sets the description in the tooltip which appears when the user selects the cell in Microsoft Excel.
This value is only used when [[showInputMessage]] is True.
Note: the description cannot be more than 255 characters.
The description to show the user in the tooltip.[[ArgumentException]] Occurs when the specified value is longer than 255 characters.
[[inputMessageTitle]]
Gets or sets the title in the tooltip which appears when the user selects the cell in Microsoft Excel.
This value is only used when [[showInputMessage]] is True.
Note: the title cannot be more than 32 characters.
The title to show the user in the tooltip.[[ArgumentException]] Occurs when the specified value is longer than 32 characters.
[[inputMessageDescription]]
Gets or sets the value which indicates whether the error dialog should appear in Microsoft Excel when invalid data is entered in the cell.
When the value is False, invalid data can be entered into cells, but when the user chooses to subsequently circle invalid values in Microsoft Excel, the cell will be circled.
True to show the error dialog for invalid cell data; False otherwise.Gets or sets the value which indicates whether to show the user an input prompt tooltip when the user selects the cell in Microsoft Excel.
The input prompt will only be shown if this value is True and the [[inputMessageDescription]] is not null.
Gets or sets the criteria to use when validating the cell value against the constraint(s).
Depending on the value specified, either then cell value or the length of its text equivalent will be compared against the constraint(s). In addition, certain ValidationCriteria values may disallow a cell value even if it is valid when compared to the constraint. For example, the ValidationCriteria.WholeNumber value will not allow any number with a fractional portion.
[[InvalidEnumArgumentException]] Occurs when the value is not a member of the [[DataValidationCriteria]] enumeration.
Gets or sets the validation operator to use when comparing the cell value against the constraint values or formulas.
Depending on the [[ValueConstraintDataValidationRule.validationCriteria]] of the rule, either the cell value itself or the length of the cell value's text equivalent is compared to the constraint values or formulas.
[[InvalidEnumArgumentException]] Occurs when the value is not a member of the [[TwoConstraintDataValidationOperator]] enumeration.
Creates a copy of this rule which can be applied to other worksheets.
Gets the lower constraint formula used to validate the cell value.
The way in which the cell value is compared to the lower constraint formula's value is determined by the [[validationOperator]] as well as the [[ValueConstraintDataValidationRule.validationCriteria]].
Depending on the ValidationCriteria of the rule, either the cell value itself or the length of the cell value's text equivalent is compared to the lower constraint formula's value.
When the [[validationOperator]] is Between, the value must be greater than or equal to the lower constraint and less than or equal to the upper constraint. When the ValidationOperator is NotBetween, the value must be less than the lower constraint or greater than the upper constraint.
The address passed in is only needed if relative addresses are used in the the formula. For example, consider the formula applied is =B1, and the data validation rule is applied to the region A1:A5. If you get the formula for A1, the formula =B1 will be returned. If you get the formula for A2, =B2 will be returned. Similarly, for cell A5, =B5 will be returned. However, if the formula contains no references or all absolute references, the 'address' is ignored. So in the previous example, if the original formula was =$B$1, the same formula will be returned regardless of the specified address.
'address' can be any valid cell or region reference on a worksheet. If a region address is specified, the top-left cell or the region is used. The cell or region specified does not need to have the data validation rule applied to it. Any reference is allowed.
The cell reference mode with which to parse 'address' will be assumed to be A1, unless the data validation rule is applied to a worksheet which is in a workbook, in which case the [[Workbook.cellReferenceMode]] will be used.
[[ArgumentException]] Occurs when 'address' is not a valid cell or regions address.
The address of the cell or region that serves as the basis for relative references, or null to use the top-left cell of the worksheet.
Gets the lower constraint formula used to validate the cell value.
The way in which the cell value is compared to the lower constraint formula's value is determined by the [[validationOperator]] as well as the [[ValueConstraintDataValidationRule.validationCriteria]].
Depending on the ValidationCriteria of the rule, either the cell value itself or the length of the cell value's text equivalent is compared to the lower constraint formula's value.
When the [[validationOperator]] is Between, the value must be greater than or equal to the lower constraint and less than or equal to the upper constraint. When the ValidationOperator is NotBetween, the value must be less than the lower constraint or greater than the upper constraint.
The address passed in is only needed if relative addresses are used in the the formula. For example, consider the formula applied is =B1, and the data validation rule is applied to the region A1:A5. If you get the formula for A1, the formula =B1 will be returned. If you get the formula for A2, =B2 will be returned. Similarly, for cell A5, =B5 will be returned. However, if the formula contains no references or all absolute references, the 'address' is ignored. So in the previous example, if the original formula was =$B$1, the same formula will be returned regardless of the specified address.
'address' can be any valid cell or region reference on a worksheet. If a region address is specified, the top-left cell or the region is used. The cell or region specified does not need to have the data validation rule applied to it. Any reference is allowed.
[[ArgumentException]] Occurs when 'address' is not a valid cell or regions address.
[[InvalidEnumArgumentException]] Occurs when 'format' is not defined in the [[WorkbookFormat]] enumeration.
[[InvalidEnumArgumentException]] Occurs when 'cellReferenceMode' is not defined in the [[CellReferenceMode]] enumeration.
The address of the cell or region that serves as the basis for relative references, or null to use the top-left cell of the worksheet.
The workbook format with which to parse 'address'.
The cell reference mode with which to parse 'address'.
The culture to use when generating the formula string.
Gets the upper constraint formula used to validate the cell value.
The way in which the cell value is compared to the upper constraint formula's value is determined by the [[validationOperator]] as well as the [[ValueConstraintDataValidationRule.validationCriteria]].
Depending on the ValidationCriteria of the rule, either the cell value itself or the length of the cell value's text equivalent is compared to the upper constraint formula's value.
When the [[validationOperator]] is Between, the value must be greater than or equal to the lower constraint and less than or equal to the upper constraint. When the ValidationOperator is NotBetween, the value must be less than the lower constraint or greater than the upper constraint.
The address passed in is only needed if relative addresses are used in the the formula. For example, consider the formula applied is =B1, and the data validation rule is applied to the region A1:A5. If you get the formula for A1, the formula =B1 will be returned. If you get the formula for A2, =B2 will be returned. Similarly, for cell A5, =B5 will be returned. However, if the formula contains no references or all absolute references, the 'address' is ignored. So in the previous example, if the original formula was =$B$1, the same formula will be returned regardless of the specified address.
'address' can be any valid cell or region reference on a worksheet. If a region address is specified, the top-left cell or the region is used. The cell or region specified does not need to have the data validation rule applied to it. Any reference is allowed.
The cell reference mode with which to parse 'address' will be assumed to be A1, unless the data validation rule is applied to a worksheet which is in a workbook, in which case the [[Workbook.cellReferenceMode]] will be used.
[[ArgumentException]] Occurs when 'address' is not a valid cell or regions address.
The address of the cell or region that serves as the basis for relative references, or null to use the top-left cell of the worksheet.
Gets the upper constraint formula used to validate the cell value.
The way in which the cell value is compared to the upper constraint formula's value is determined by the [[validationOperator]] as well as the [[ValueConstraintDataValidationRule.validationCriteria]].
Depending on the ValidationCriteria of the rule, either the cell value itself or the length of the cell value's text equivalent is compared to the upper constraint formula's value.
When the [[validationOperator]] is Between, the value must be greater than or equal to the lower constraint and less than or equal to the upper constraint. When the ValidationOperator is NotBetween, the value must be less than the lower constraint or greater than the upper constraint.
The address passed in is only needed if relative addresses are used in the the formula. For example, consider the formula applied is =B1, and the data validation rule is applied to the region A1:A5. If you get the formula for A1, the formula =B1 will be returned. If you get the formula for A2, =B2 will be returned. Similarly, for cell A5, =B5 will be returned. However, if the formula contains no references or all absolute references, the 'address' is ignored. So in the previous example, if the original formula was =$B$1, the same formula will be returned regardless of the specified address.
'address' can be any valid cell or region reference on a worksheet. If a region address is specified, the top-left cell or the region is used. The cell or region specified does not need to have the data validation rule applied to it. Any reference is allowed.
[[ArgumentException]] Occurs when 'address' is not a valid cell or regions address.
[[InvalidEnumArgumentException]] Occurs when 'format' is not defined in the [[WorkbookFormat]] enumeration.
[[InvalidEnumArgumentException]] Occurs when 'cellReferenceMode' is not defined in the [[CellReferenceMode]] enumeration.
The address of the cell or region that serves as the basis for relative references, or null to use the top-left cell of the worksheet.
The workbook format with which to parse 'address'.
The cell reference mode with which to parse 'address'.
The culture to use when generating the formula string.
Indicates if this rule is structurally equivalent to another.
The rule to compare against
Sets the lower constraint value used to validate the cell value.
The way in which the cell value is compared to the lower constraint value is determined by the [[validationOperator]] as well as the [[ValueConstraintDataValidationRule.validationCriteria]].
Depending on the ValidationCriteria of the rule, either the cell value itself or the length of the cell value's text equivalent is compared to the lower constraint value.
When the [[validationOperator]] is Between, the value must be greater than or equal to the lower constraint and less than or equal to the upper constraint. When the ValidationOperator is NotBetween, the value must be less than the lower constraint or greater than the upper constraint.
This overload is preferred when the ValidationCriteria is Date. When the ValidationCriteria is WholeNumber, Decimal, Time, or TextLength, the [[setLowerConstraint]] overload is preferred.
[[ArgumentException]] Occurs when 'value' cannot be represented as a date in Excel.
[[ArgumentException]] Occurs when the specified value is greater than the upper constraint value. If the upper constraint formula does not equal a constant, this verification is not performed.
The lower constraint value used to compare against the cell value.
Sets the lower constraint value used to validate the cell value.
The way in which the cell value is compared to the lower constraint value is determined by the [[validationOperator]] as well as the [[ValueConstraintDataValidationRule.validationCriteria]].
Depending on the ValidationCriteria of the rule, either the cell value itself or the length of the cell value's text equivalent is compared to the lower constraint value.
When the [[validationOperator]] is Between, the value must be greater than or equal to the lower constraint and less than or equal to the upper constraint. When the ValidationOperator is NotBetween, the value must be less than the lower constraint or greater than the upper constraint.
This overload is preferred when the ValidationCriteria is WholeNumber, Decimal, Time, or TextLength. When the ValidationCriteria is Date, the [[setLowerConstraint]] overload is preferred.
[[ArgumentException]] Occurs when the specified value is greater than the upper constraint value. If the upper constraint formula does not equal a constant, this verification is not performed.
The lower constraint value used to compare against the cell value.
Gets the lower constraint formula used to validate the cell value.
The way in which the cell value is compared to the lower constraint formula's value is determined by the [[validationOperator]] as well as the [[ValueConstraintDataValidationRule.validationCriteria]].
Depending on the ValidationCriteria of the rule, either the cell value itself or the length of the cell value's text equivalent is compared to the lower constraint formula's value.
When the [[validationOperator]] is Between, the value must be greater than or equal to the lower constraint and less than or equal to the upper constraint. When the ValidationOperator is NotBetween, the value must be less than the lower constraint or greater than the upper constraint.
The address passed in is only needed if relative addresses are used in the the formula. When the data validation rule is applied to cells or regions, the references in the formula used by each individual cell will be shifted by the offset of the cell to the passed in 'address'. For example, consider the formula specified is =B1 and the specified address is A1. If the data validation rule is then applied to the A5 cell, the formula is will use is =B5. However, if the references in the formula are absolute, such as =$B$1, the same formula will be applied regardless of the specified address.
'address' can be any valid cell or region reference on a worksheet. If a region address is specified, the top-left cell or the region is used. The cell or region specified does not need to have the data validation rule applied to it. Any reference is allowed.
The cell reference mode with which to parse 'address' will be assumed to be A1, unless the data validation rule is applied to a worksheet which is in a workbook, in which case the [[Workbook.cellReferenceMode]] will be used.
[[ArgumentNullException]] Occurs when 'lowerConstraintFormula' is null and the rule is currently applied to a [[Worksheet]].
[[ArgumentException]] Occurs when 'lowerConstraintFormula' is an [[ArrayFormula]].
[[ArgumentException]] Occurs when 'address' is not a valid cell or regions address.
[[ArgumentNullException]] Occurs when the specified value is null and the rule is currently applied to a [[Worksheet]].
[[FormulaParseException]] Occurs when 'lowerConstraintFormula' is not a valid formula.
[[ArgumentException]] Occurs when the specified value equals a constant, such as =5, and the constant value is greater than the upper constraint value. If the upper constraint formula does not equal a constant, this verification is not performed.
The lower constraint formula to use for the rule.
The address of the cell or region that serves as the basis for relative references, or null to use the top-left cell of the worksheet.
Gets the lower constraint formula used to validate the cell value.
The way in which the cell value is compared to the lower constraint formula's value is determined by the [[validationOperator]] as well as the [[ValueConstraintDataValidationRule.validationCriteria]].
Depending on the ValidationCriteria of the rule, either the cell value itself or the length of the cell value's text equivalent is compared to the lower constraint formula's value.
When the [[validationOperator]] is Between, the value must be greater than or equal to the lower constraint and less than or equal to the upper constraint. When the ValidationOperator is NotBetween, the value must be less than the lower constraint or greater than the upper constraint.
The address passed in is only needed if relative addresses are used in the the formula. When the data validation rule is applied to cells or regions, the references in the formula used by each individual cell will be shifted by the offset of the cell to the passed in 'address'. For example, consider the formula specified is =B1 and the specified address is A1. If the data validation rule is then applied to the A5 cell, the formula is will use is =B5. However, if the references in the formula are absolute, such as =$B$1, the same formula will be applied regardless of the specified address.
'address' can be any valid cell or region reference on a worksheet. If a region address is specified, the top-left cell or the region is used. The cell or region specified does not need to have the data validation rule applied to it. Any reference is allowed.
[[ArgumentNullException]] Occurs when 'lowerConstraintFormula' is null and the rule is currently applied to a [[Worksheet]].
[[ArgumentException]] Occurs when 'lowerConstraintFormula' is an [[ArrayFormula]].
[[ArgumentException]] Occurs when 'address' is not a valid cell or regions address.
[[ArgumentNullException]] Occurs when the specified value is null and the rule is currently applied to a [[Worksheet]].
[[FormulaParseException]] Occurs when 'lowerConstraintFormula' is not a valid formula.
[[ArgumentException]] Occurs when the specified value equals a constant, such as =5, and the constant value is greater than the upper constraint value. If the upper constraint formula does not equal a constant, this verification is not performed.
[[InvalidEnumArgumentException]] Occurs when 'format' is not defined in the [[WorkbookFormat]] enumeration.
[[InvalidEnumArgumentException]] Occurs when 'cellReferenceMode' is not defined in the [[CellReferenceMode]] enumeration.
The lower constraint formula to use for the rule.
The address of the cell or region that serves as the basis for relative references, or null to use the top-left cell of the worksheet.
The workbook format with which to parse 'address'.
The cell reference mode with which to parse 'address'.
The culture to use when parsing the formula string.
Sets the upper constraint value used to validate the cell value.
The way in which the cell value is compared to the upper constraint value is determined by the [[validationOperator]] as well as the [[ValueConstraintDataValidationRule.validationCriteria]].
Depending on the ValidationCriteria of the rule, either the cell value itself or the length of the cell value's text equivalent is compared to the upper constraint value.
When the [[validationOperator]] is Between, the value must be greater than or equal to the lower constraint and less than or equal to the upper constraint. When the ValidationOperator is NotBetween, the value must be less than the lower constraint or greater than the upper constraint.
This overload is preferred when the ValidationCriteria is Date. When the ValidationCriteria is WholeNumber, Decimal, Time, or TextLength, the [[setUpperConstraint]] overload is preferred.
[[ArgumentException]] Occurs when 'value' cannot be represented as a date in Excel.
[[ArgumentException]] Occurs when the specified value is less than the lower constraint value. If the lower constraint formula does not equal a constant, this verification is not performed.
The lower constraint value used to compare against the cell value.
Sets the upper constraint value used to validate the cell value.
The way in which the cell value is compared to the upper constraint value is determined by the [[validationOperator]] as well as the [[ValueConstraintDataValidationRule.validationCriteria]].
Depending on the ValidationCriteria of the rule, either the cell value itself or the length of the cell value's text equivalent is compared to the upper constraint value.
When the [[validationOperator]] is Between, the value must be greater than or equal to the lower constraint and less than or equal to the upper constraint. When the ValidationOperator is NotBetween, the value must be less than the lower constraint or greater than the upper constraint.
This overload is preferred when the ValidationCriteria is WholeNumber, Decimal, Time, or TextLength. When the ValidationCriteria is Date, the [[setUpperConstraint]] overload is preferred.
[[ArgumentException]] Occurs when the specified value is less than the lower constraint value. If the lower constraint formula does not equal a constant, this verification is not performed.
The lower constraint value used to compare against the cell value.
Gets the upper constraint formula used to validate the cell value.
The way in which the cell value is compared to the upper constraint formula's value is determined by the [[validationOperator]] as well as the [[ValueConstraintDataValidationRule.validationCriteria]].
Depending on the ValidationCriteria of the rule, either the cell value itself or the length of the cell value's text equivalent is compared to the upper constraint formula's value.
When the [[validationOperator]] is Between, the value must be greater than or equal to the lower constraint and less than or equal to the upper constraint. When the ValidationOperator is NotBetween, the value must be less than the lower constraint or greater than the upper constraint.
The address passed in is only needed if relative addresses are used in the the formula. When the data validation rule is applied to cells or regions, the references in the formula used by each individual cell will be shifted by the offset of the cell to the passed in 'address'. For example, consider the formula specified is =B1 and the specified address is A1. If the data validation rule is then applied to the A5 cell, the formula is will use is =B5. However, if the references in the formula are absolute, such as =$B$1, the same formula will be applied regardless of the specified address.
'address' can be any valid cell or region reference on a worksheet. If a region address is specified, the top-left cell or the region is used. The cell or region specified does not need to have the data validation rule applied to it. Any reference is allowed.
The cell reference mode with which to parse 'address' will be assumed to be A1, unless the data validation rule is applied to a worksheet which is in a workbook, in which case the [[Workbook.cellReferenceMode]] will be used.
[[ArgumentNullException]] Occurs when 'upperConstraintFormula' is null and the rule is currently applied to a [[Worksheet]].
[[ArgumentException]] Occurs when 'upperConstraintFormula' is an [[ArrayFormula]].
[[ArgumentException]] Occurs when 'address' is not a valid cell or regions address.
[[ArgumentNullException]] Occurs when the specified value is null and the rule is currently applied to a [[Worksheet]].
[[FormulaParseException]] Occurs when 'upperConstraintFormula' is not a valid formula.
[[ArgumentException]] Occurs when the specified value equals a constant, such as =5, and the constant value is greater than the upper constraint value. If the upper constraint formula does not equal a constant, this verification is not performed.
The upper constraint formula to use for the rule.
The address of the cell or region that serves as the basis for relative references, or null to use the top-left cell of the worksheet.
Gets the upper constraint formula used to validate the cell value.
The way in which the cell value is compared to the upper constraint formula's value is determined by the [[validationOperator]] as well as the [[ValueConstraintDataValidationRule.validationCriteria]].
Depending on the ValidationCriteria of the rule, either the cell value itself or the length of the cell value's text equivalent is compared to the upper constraint formula's value.
When the [[validationOperator]] is Between, the value must be greater than or equal to the lower constraint and less than or equal to the upper constraint. When the ValidationOperator is NotBetween, the value must be less than the lower constraint or greater than the upper constraint.
The address passed in is only needed if relative addresses are used in the the formula. When the data validation rule is applied to cells or regions, the references in the formula used by each individual cell will be shifted by the offset of the cell to the passed in 'address'. For example, consider the formula specified is =B1 and the specified address is A1. If the data validation rule is then applied to the A5 cell, the formula is will use is =B5. However, if the references in the formula are absolute, such as =$B$1, the same formula will be applied regardless of the specified address.
'address' can be any valid cell or region reference on a worksheet. If a region address is specified, the top-left cell or the region is used. The cell or region specified does not need to have the data validation rule applied to it. Any reference is allowed.
[[ArgumentNullException]] Occurs when 'upperConstraintFormula' is null and the rule is currently applied to a [[Worksheet]].
[[ArgumentException]] Occurs when 'upperConstraintFormula' is an [[ArrayFormula]].
[[ArgumentException]] Occurs when 'address' is not a valid cell or regions address.
[[ArgumentNullException]] Occurs when the specified value is null and the rule is currently applied to a [[Worksheet]].
[[FormulaParseException]] Occurs when 'upperConstraintFormula' is not a valid formula.
[[ArgumentException]] Occurs when the specified value equals a constant, such as =5, and the constant value is greater than the upper constraint value. If the upper constraint formula does not equal a constant, this verification is not performed.
[[InvalidEnumArgumentException]] Occurs when 'format' is not defined in the [[WorkbookFormat]] enumeration.
[[InvalidEnumArgumentException]] Occurs when 'cellReferenceMode' is not defined in the [[CellReferenceMode]] enumeration.
The upper constraint formula to use for the rule.
The address of the cell or region that serves as the basis for relative references, or null to use the top-left cell of the worksheet.
The workbook format with which to parse 'address'.
The cell reference mode with which to parse 'address'.
The culture to use when parsing the formula string.
Static
compareStatic
compareStatic
equalsStatic
equalsStatic
getStatic
getStatic
getStatic
reference
Represents a data validation rule which can validate the cell value against two constraint values or formulas.
See