
## PivotDiscreteGroupSettings class

Rrepsents the discrete group of pivot field

```javascript
class PivotDiscreteGroupSettings extends PivotFieldGroupSettings;
```


## Constructors

| Name | Description |
| --- | --- |
| [constructor(PivotFieldGroupSettings)](#constructor-pivotfieldgroupsettings-)| Constructs from a parent object convertible to this. |

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [items](#items--)| CustomPiovtFieldGroupItem[] | Readonly. Gets the discrete items. |
| [discreteItems](#discreteItems--)| DiscreteGroupItem[] | Readonly. Gets the discrete items. |

## Methods

| Method | Description |
| --- | --- |
| [getType()](#getType--)| Gets the group type. |


### constructor(PivotFieldGroupSettings) {#constructor-pivotfieldgroupsettings-}

Constructs from a parent object convertible to this.

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

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

### items {#items--}

Readonly. Gets the discrete items.

```javascript
items : CustomPiovtFieldGroupItem[];
```


**Remarks**

NOTE: This method is now obsolete. Instead, please use PivotField.GroupBy(DiscreteGroupItem[], bool) method . This method will be removed 12 months later since July 2026. Aspose apologizes for any inconvenience you may have experienced.

### discreteItems {#discreteItems--}

Readonly. Gets the discrete items.

```javascript
discreteItems : DiscreteGroupItem[];
```


### getType() {#getType--}

Gets the group type.

```javascript
getType() : PivotFieldGroupType;
```


**Returns**

[PivotFieldGroupType](../pivotfieldgrouptype/)


