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

# ListStyleSheetManager

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

## Classes

### ListStyleSheetManager

#### Implements

#### Constructors

##### Constructor

```ts
new ListStyleSheetManager(listSetting): ListStyleSheetManager;
```

###### Parameters

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

###### Returns

[`ListStyleSheetManager`](#liststylesheetmanager)

#### Methods

##### clearAllStyleSheets()

```ts
clearAllStyleSheets(): void;
```

Clears all style sheets.

###### Returns

`void`

###### Implementation of

[`IListStyleSheetManager`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#iliststylesheetmanager).[`clearAllStyleSheets`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#clearallstylesheets)

##### createDefaultBulletedStyleSheet()

```ts
createDefaultBulletedStyleSheet(bulletCharCode): IListStyleSheetAccessor;
```

Creates a new style sheet with default style for bulleted list.

###### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `bulletCharCode` | `number` | character code used as 'bullet' (e.g., code 8225 used for “‡“). |

###### Returns

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

stylesheet with unique name.

###### Implementation of

[`IListStyleSheetManager`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#iliststylesheetmanager).[`createDefaultBulletedStyleSheet`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#createdefaultbulletedstylesheet)

##### createDefaultNumberedStyleSheet()

```ts
createDefaultNumberedStyleSheet(numberingFormat): IListStyleSheetAccessor;
```

Creates a new style sheet with default style for numbered list.

###### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `numberingFormat` | [`NumberingFormatType`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/NumberingFormatType.md#numberingformattype) | numbering format. |

###### Returns

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

stylesheet with unique name.

###### Implementation of

[`IListStyleSheetManager`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#iliststylesheetmanager).[`createDefaultNumberedStyleSheet`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#createdefaultnumberedstylesheet)

##### createEmptyStyleSheet()

```ts
createEmptyStyleSheet(): IListStyleSheetAccessor;
```

Creates a new empty stylesheet.

###### Returns

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

stylesheet with unique name.

###### Implementation of

[`IListStyleSheetManager`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#iliststylesheetmanager).[`createEmptyStyleSheet`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#createemptystylesheet)

##### createStyleSheet()

```ts
createStyleSheet(listStyles): IListStyleSheetAccessor;
```

Creates a new style sheet by existing list styles.

###### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `listStyles` | [`IListStyle`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyle.md#iliststyle)[] | list styles. |

###### Returns

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

stylesheet with unique name.

###### Implementation of

[`IListStyleSheetManager`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#iliststylesheetmanager).[`createStyleSheet`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#createstylesheet)

##### getAllStyleSheets()

```ts
getAllStyleSheets(): IListStyleSheetAccessor[];
```

Returns all style sheets.

###### Returns

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

###### Implementation of

[`IListStyleSheetManager`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#iliststylesheetmanager).[`getAllStyleSheets`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#getallstylesheets)

##### getDefaultListLevelGap()

```ts
getDefaultListLevelGap(type): number;
```

Returns the default gap between list levels.

###### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `type` | [`ListType`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ListType.md#listtype) | list type. |

###### Returns

`number`

###### Implementation of

[`IListStyleSheetManager`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#iliststylesheetmanager).[`getDefaultListLevelGap`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#getdefaultlistlevelgap)

##### getDefaultListStyle()

```ts
getDefaultListStyle(type, level): IListStyle;
```

Returns the default list style by type.

###### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `type` | [`ListType`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ListType.md#listtype) | list type. |
| `level` | `number` | list level. |

###### Returns

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

###### Implementation of

[`IListStyleSheetManager`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#iliststylesheetmanager).[`getDefaultListStyle`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#getdefaultliststyle)

##### getListSetting()

```ts
getListSetting(): IListSetting;
```

Returns list settings.

###### Returns

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

###### Implementation of

[`IListStyleSheetManager`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#iliststylesheetmanager).[`getListSetting`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#getlistsetting)

##### getStyleSheet()

```ts
getStyleSheet(name): IListStyleSheetAccessor;
```

Returns the list style sheet by name.

###### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `name` | `string` | unique name of stylesheet. |

###### Returns

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

###### Implementation of

[`IListStyleSheetManager`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#iliststylesheetmanager).[`getStyleSheet`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#getstylesheet)

##### getStyleSheetsCount()

```ts
getStyleSheetsCount(): number;
```

Returns the number of style sheets.

###### Returns

`number`

###### Implementation of

[`IListStyleSheetManager`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#iliststylesheetmanager).[`getStyleSheetsCount`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#getstylesheetscount)

##### initialize()

```ts
initialize(styleSheets?): void;
```

Clears and initializes list style sheets.

###### Parameters

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

###### Returns

`void`

###### Implementation of

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

##### isStyleSheetExists()

```ts
isStyleSheetExists(name): boolean;
```

Checks for the existence of a style sheet.

###### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `name` | `string` | unique name of stylesheet. |

###### Returns

`boolean`

true if the style sheet exists, false otherwise.

###### Implementation of

[`IListStyleSheetManager`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#iliststylesheetmanager).[`isStyleSheetExists`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#isstylesheetexists)
