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

# ListStyleSheetAccessor

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

## Classes

### ListStyleSheetAccessor

#### Implements

#### Constructors

##### Constructor

```ts
new ListStyleSheetAccessor(listStyleSheet): ListStyleSheetAccessor;
```

###### Parameters

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

###### Returns

[`ListStyleSheetAccessor`](#liststylesheetaccessor)

#### Accessors

##### name

###### Get Signature

```ts
get name(): string;
```

Style name.

###### Returns

`string`

Style name.

###### Implementation of

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

#### 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)[]

###### Implementation of

[`IListStyleSheetAccessor`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetAccessor.md#iliststylesheetaccessor).[`getAllListStyles`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetAccessor.md#getallliststyles)

##### 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)

###### Implementation of

[`IListStyleSheetAccessor`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetAccessor.md#iliststylesheetaccessor).[`getListStyle`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetAccessor.md#getliststyle)

##### 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)

###### Implementation of

[`IListStyleSheetAccessor`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetAccessor.md#iliststylesheetaccessor).[`getListStyleSheet`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetAccessor.md#getliststylesheet)

##### 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`

###### Implementation of

[`IListStyleSheetAccessor`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetAccessor.md#iliststylesheetaccessor).[`setListStyle`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetAccessor.md#setliststyle)
