## AutoFilter::Filter(int32_t, const U16String\&) method


Filters a list with specified criteria.

```cpp
void Aspose::Cells::AutoFilter::Filter(int32_t fieldIndex, const U16String &criteria)
```


| Parameter | Type | Description |
| --- | --- | --- |
| fieldIndex | int32_t | The integer offset of the field on which you want to base the filter (from the left of the list; the leftmost field is field 0). |
| criteria | const U16String\& | The specified criteria (a string; for example, "101"). |
## Remarks



[Aspose.Cells](../../) will remove all other filter setting on this field as Ms Excel 97-2003. 
## See Also

* Class [U16String](../../u16string/)
* Class [AutoFilter](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## AutoFilter::Filter(int32_t, const char16_t*) method


Filters a list with specified criteria.

```cpp
void Aspose::Cells::AutoFilter::Filter(int32_t fieldIndex, const char16_t *criteria)
```


| Parameter | Type | Description |
| --- | --- | --- |
| fieldIndex | int32_t | The integer offset of the field on which you want to base the filter (from the left of the list; the leftmost field is field 0). |
| criteria | const char16_t* | The specified criteria (a string; for example, "101"). |
## Remarks



[Aspose.Cells](../../) will remove all other filter setting on this field as Ms Excel 97-2003. 
## See Also

* Class [AutoFilter](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
