Skip to main content

XlDataValidation.ListValues Property

Provides access to the list of values used in the data validation rule.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v24.1.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

public IList<XlVariantValue> ListValues { get; }

Property Value

Type Description
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