Docs HotXLS

AutoFilterColumns-property

Renvoie the classic XLS AutoFilter field collection for the worksheet. Read-only

Syntaxe

property AutoFilterColumns: TXLSAutofilter;

Remarques

La collection utilise des index de champs basés sur 1 correspondant aux colonnes AutoFilter visibles Count returns the number of filtered columns in the current range. Items[Field] and Find(Field) return a TXLSAutofilterItem for that field or nil when the field index is outside the current range
Each item exposes Active, Operator, Criteria1, and Criteria2. Criteria objects expose the stored BIFF8 DOPER DataType, grbitSgn, and Value

Exemple

Sheet.ApplyAutoFilter('A1:C5', 2, '>=100');
FilterItem := Sheet.AutoFilterColumns.Find(2);
if Assigned(FilterItem) and FilterItem.Active then
  CriteriaValue := FilterItem.Criteria1.Value;

See Also