corelibraries-devexpress-dot-export-dot-xl-dot-xldatavalidation-df2c9d2b.md
Provides access to the list of values used in the data validation rule.
Namespace : DevExpress.Export.Xl
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
public IList<XlVariantValue> ListValues { get; }
Public ReadOnly Property ListValues As IList(Of XlVariantValue)
| Type | Description |
|---|---|
| IList<XlVariantValue> |
A IList<XlVariantValue> object that is the list of values.
|
Use the ListValues property to provide a list of values used as a validation criteria in the XlDataValidationType.List validation rule type.
Use the XlDataValidation.ListRange property to specify cell ranges whose values should be used as a validation criteria in the XlDataValidationType.List validation rule type.
Note
The maximum length of a list used to specify the XlDataValidationType.List validation type or a custom validation criteria is 255 characters. When a list or criteria exceeds this value, an InvalidOperationException is thrown.
See Also