Class ExcelDataValidationAsType¶
Namespace: OfficeOpenXml.DataValidation
Assembly: EPPlus.dll
Provides a simple way to type cast a data validation object to its actual class.
Inheritance¶
object ← ExcelDataValidationAsType
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Properties¶
AnyValidation¶
Returns the data validation object as IExcelDataValidationAny
Property Value¶
CustomValidation¶
Returns the data validation object as IExcelDataValidationCustom
Property Value¶
DateTimeValidation¶
Returns the data validation object as IExcelDataValidationDateTime
Property Value¶
DecimalValidation¶
Returns the data validation object as IExcelDataValidationDecimal
Property Value¶
IntegerValidation¶
Returns the data validation object as IExcelDataValidationInt
Property Value¶
ListValidation¶
Returns the data validation object as IExcelDataValidationList
Property Value¶
TimeValidation¶
Returns the data validation object as IExcelDataValidationTime
Property Value¶
Methods¶
Type<T>()¶
Converts the data validation object to it's implementing class or any of the abstract classes/interfaces inheriting the IExcelDataValidation interface.
Returns¶
T
An instance of T or null if type casting fails.
Type Parameters¶
T
The type of datavalidation object. T must be inherited from IExcelDataValidation