
## Top10Filter class

Represents the top N (percent or number of items) to filter by.

```javascript
class Top10Filter;
```


## Constructors

| Constructor | Description |
| --- | --- |
| [constructor(Object)](#constructor-object-)| Constructs from an Object convertible to this. |

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [isTop](#isTop--)| boolean | Indicates whether or not to filter by top order |
| [isPercent](#isPercent--)| boolean | Indicates whether or not to filter by percent value of the column |
| [items](#items--)| number | Gets and sets top or bottom value to use as the filter criteria. |
| [criteria](#criteria--)| Object | The actual cell value in the range which is used to perform the comparison for this filter. This is the cache value during the refresh process. |

## Methods

| Method | Description |
| --- | --- |
| [isTop()](#isTop--)| <b>@deprecated.</b> Please use the 'isTop' property instead. Indicates whether or not to filter by top order |
| [setIsTop(boolean)](#setIsTop-boolean-)| <b>@deprecated.</b> Please use the 'isTop' property instead. Indicates whether or not to filter by top order |
| [isPercent()](#isPercent--)| <b>@deprecated.</b> Please use the 'isPercent' property instead. Indicates whether or not to filter by percent value of the column |
| [setIsPercent(boolean)](#setIsPercent-boolean-)| <b>@deprecated.</b> Please use the 'isPercent' property instead. Indicates whether or not to filter by percent value of the column |
| [getItems()](#getItems--)| <b>@deprecated.</b> Please use the 'items' property instead. Gets and sets top or bottom value to use as the filter criteria. |
| [setItems(number)](#setItems-number-)| <b>@deprecated.</b> Please use the 'items' property instead. Gets and sets top or bottom value to use as the filter criteria. |
| [getCriteria()](#getCriteria--)| <b>@deprecated.</b> Please use the 'criteria' property instead. The actual cell value in the range which is used to perform the comparison for this filter. This is the cache value during the refresh process. |
| [setCriteria(Object)](#setCriteria-object-)| <b>@deprecated.</b> Please use the 'criteria' property instead. The actual cell value in the range which is used to perform the comparison for this filter. This is the cache value during the refresh process. |
| [isNull()](#isNull--)| Checks whether the implementation object is null. |
| [toObject()](#toObject--)| Gets the Object. |


### constructor(Object) {#constructor-object-}

Constructs from an Object convertible to this.

```javascript
constructor(obj: Object);
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| obj | Object | The object. |

### isTop {#isTop--}

Indicates whether or not to filter by top order

```javascript
isTop : boolean;
```


### isPercent {#isPercent--}

Indicates whether or not to filter by percent value of the column

```javascript
isPercent : boolean;
```


### items {#items--}

Gets and sets top or bottom value to use as the filter criteria.

```javascript
items : number;
```


### criteria {#criteria--}

The actual cell value in the range which is used to perform the comparison for this filter. This is the cache value during the refresh process.

```javascript
criteria : Object;
```


**Remarks**

NOTE: This member is now obsolete. Instead,please ignore this property. This property will be removed 12 months later since October 2025. Aspose apologizes for any inconvenience you may have experienced.

### isTop() {#isTop--}

<b>@deprecated.</b> Please use the 'isTop' property instead. Indicates whether or not to filter by top order

```javascript
isTop() : boolean;
```


### setIsTop(boolean) {#setIsTop-boolean-}

<b>@deprecated.</b> Please use the 'isTop' property instead. Indicates whether or not to filter by top order

```javascript
setIsTop(value: boolean) : void;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | The value to set. |

### isPercent() {#isPercent--}

<b>@deprecated.</b> Please use the 'isPercent' property instead. Indicates whether or not to filter by percent value of the column

```javascript
isPercent() : boolean;
```


### setIsPercent(boolean) {#setIsPercent-boolean-}

<b>@deprecated.</b> Please use the 'isPercent' property instead. Indicates whether or not to filter by percent value of the column

```javascript
setIsPercent(value: boolean) : void;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | The value to set. |

### getItems() {#getItems--}

<b>@deprecated.</b> Please use the 'items' property instead. Gets and sets top or bottom value to use as the filter criteria.

```javascript
getItems() : number;
```


### setItems(number) {#setItems-number-}

<b>@deprecated.</b> Please use the 'items' property instead. Gets and sets top or bottom value to use as the filter criteria.

```javascript
setItems(value: number) : void;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | number | The value to set. |

### getCriteria() {#getCriteria--}

<b>@deprecated.</b> Please use the 'criteria' property instead. The actual cell value in the range which is used to perform the comparison for this filter. This is the cache value during the refresh process.

```javascript
getCriteria() : Object;
```


**Remarks**

NOTE: This member is now obsolete. Instead,please ignore this property. This property will be removed 12 months later since October 2025. Aspose apologizes for any inconvenience you may have experienced.

### setCriteria(Object) {#setCriteria-object-}

<b>@deprecated.</b> Please use the 'criteria' property instead. The actual cell value in the range which is used to perform the comparison for this filter. This is the cache value during the refresh process.

```javascript
setCriteria(value: Object) : void;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | Object | The value to set. |

**Remarks**

NOTE: This member is now obsolete. Instead,please ignore this property. This property will be removed 12 months later since October 2025. Aspose apologizes for any inconvenience you may have experienced.

### isNull() {#isNull--}

Checks whether the implementation object is null.

```javascript
isNull() : boolean;
```


### toObject() {#toObject--}

Gets the Object.

```javascript
toObject() : Object;
```



