Show / Hide Table of Contents

Class ExcelDataValidationList

This class represents an List data validation.

Inheritance
System.Object
ExcelDataValidation
ExcelDataValidationWithFormula<IExcelDataValidationFormulaList>
ExcelDataValidationList
Implements
IExcelDataValidationList
IExcelDataValidationWithFormula<IExcelDataValidationFormulaList>
IExcelDataValidation
Inherited Members
ExcelDataValidationWithFormula<IExcelDataValidationFormulaList>._workSheetName
ExcelDataValidationWithFormula<IExcelDataValidationFormulaList>.Formula
ExcelDataValidation.Uid
ExcelDataValidation.Address
ExcelDataValidation.ErrorStyle
ExcelDataValidation.ImeMode
ExcelDataValidation.AllowBlank
ExcelDataValidation.ShowInputMessage
ExcelDataValidation.ShowErrorMessage
ExcelDataValidation.ErrorTitle
ExcelDataValidation.Error
ExcelDataValidation.PromptTitle
ExcelDataValidation.Prompt
ExcelDataValidation.As
ExcelDataValidation.IsStale
ExcelDataValidation.Operator
ExcelDataValidation.OnFormulaChanged
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml.DataValidation
Assembly: EPPlus.dll
Syntax
public class ExcelDataValidationList : ExcelDataValidationWithFormula<IExcelDataValidationFormulaList>, IExcelDataValidationList, IExcelDataValidationWithFormula<IExcelDataValidationFormulaList>, IExcelDataValidation

Properties

AllowsOperator

Read-Only property for seeing if this dataValidation type has an operator.

Declaration
public override bool AllowsOperator { get; }
Property Value
Type Description
System.Boolean
Overrides
ExcelDataValidation.AllowsOperator

HideDropDown

True if an in-cell dropdown should be hidden.

Declaration
public bool? HideDropDown { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>
Remarks

This property corresponds to the showDropDown attribute of a data validation in Office Open Xml. Strangely enough this attributes hides the in-cell dropdown if it is true and shows the dropdown if it is not present or false. We have checked this in both Ms Excel and Google sheets and it seems like this is how it is implemented in both applications. Hence why we have renamed this property to HideDropDown since that better corresponds to the functionality.

ValidationType

Property for determining type of validation

Declaration
public override ExcelDataValidationType ValidationType { get; }
Property Value
Type Description
ExcelDataValidationType
Overrides
ExcelDataValidation.ValidationType

Methods

Validate()

Validate the validation

Declaration
public override void Validate()
Overrides
OfficeOpenXml.DataValidation.ExcelDataValidationWithFormula<OfficeOpenXml.DataValidation.Formulas.Contracts.IExcelDataValidationFormulaList>.Validate()

Implements

IExcelDataValidationList
IExcelDataValidationWithFormula<T>
IExcelDataValidation
In This Article
Back to top Generated by DocFX