Back to Devexpress

XlDataValidation.ListValues Property

corelibraries-devexpress-dot-export-dot-xl-dot-xldatavalidation-df2c9d2b.md

latest2.1 KB
Original Source

XlDataValidation.ListValues Property

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

Declaration

csharp
public IList<XlVariantValue> ListValues { get; }
vb
Public ReadOnly Property ListValues As IList(Of XlVariantValue)

Property Value

TypeDescription
IList<XlVariantValue>

A IList<XlVariantValue> object that is the list of values.

|

Remarks

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

XlDataValidation Class

XlDataValidation Members

DevExpress.Export.Xl Namespace