---
title: "IListStyleSheetAccessor | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetAccessor/"
---

# IListStyleSheetAccessor

> Style name.

## Interfaces

### IListStyleSheetAccessor

#### Properties

##### name

```ts
name: string;
```

#### Methods

##### getAllListStyles()

```ts
getAllListStyles(): IListStyle[];
```

Returns all styles of the list.

###### Returns

[`IListStyle`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyle.md#iliststyle)[]

##### getListStyle()

```ts
getListStyle(level): IListStyle;
```

Returns the style of the list by level.

###### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `level` | `number` | nesting level of the list item (starts at 0). |

###### Returns

[`IListStyle`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyle.md#iliststyle)

##### getListStyleSheet()

```ts
getListStyleSheet(): IListStyleSheet;
```

Returns list style sheet.

###### Returns

[`IListStyleSheet`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheet.md#iliststylesheet)

##### setListStyle()

```ts
setListStyle(level, style): void;
```

Sets the style of the list by level.

###### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `level` | `number` | nesting level of the list item (starts at 0). |
| `style` | [`IListStyle`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyle.md#iliststyle) | list style. |

###### Returns

`void`
