Class DataValidation
Represents the data validation of a worksheet range
Inherited Members
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public class DataValidation
Constructors
DataValidation()
Initializes a new DataValidation for the supplied workbook data.
Declaration
public DataValidation()
Properties
AllowBlank
Gets or sets whether to allow blank values.
Declaration
public bool AllowBlank { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Error
Specifies the error message for data validation.
Declaration
public string Error { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ErrorMessage
Alias for Error.
Declaration
public string ErrorMessage { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ErrorStyle
Specifies the error style for data validation.
Declaration
public DataValidationErrorStyle ErrorStyle { get; set; }
Property Value
| Type | Description |
|---|---|
| DataValidationErrorStyle |
ErrorTitle
Specifies the error title for data validation.
Declaration
public string ErrorTitle { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Formula1
Get or set the first formula
Declaration
public string Formula1 { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Formula2
Exposes the formula2 associated with DataValidation.
Declaration
public string Formula2 { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The formula2 returned by the operation. |
ImeMode
Specifies the IME mode for data validation.
Declaration
public DataValidationImeMode ImeMode { get; set; }
Property Value
| Type | Description |
|---|---|
| DataValidationImeMode |
InCellDropDown
Gets or sets whether to show a dropdown arrow in the cell.
Declaration
public bool InCellDropDown { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
InputMessage
Specifies the input message text.
Declaration
public string InputMessage { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
InputMessageTitle
Specifies the input message title.
Declaration
public string InputMessageTitle { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Operator
Specifies the operator for data validation.
Declaration
public DataValidationOperator Operator { get; set; }
Property Value
| Type | Description |
|---|---|
| DataValidationOperator |
Range
Get or set the range where the data valibation should be applied.
Declaration
public Range Range { get; set; }
Property Value
| Type | Description |
|---|---|
| Range |
ShowErrorMessage
Gets or sets whether to show an error message.
Declaration
public bool ShowErrorMessage { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ShowInputMessage
Gets or sets whether to show an input message.
Declaration
public bool ShowInputMessage { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Type
Specifies the type of data validation.
Declaration
public DataValidationType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| DataValidationType |