
## add_single_level_list(list_template) {#listtemplate}

Creates a new single level list based on the predefined template and adds it to the list collection in the document.


```python
def add_single_level_list(self, list_template: aspose.words.lists.ListTemplate):
    ...
```

| Parameter | Type | Description |
| --- | --- | --- |
| list_template | [ListTemplate](../../listtemplate/) |  |

### Examples

Shows how to create a new single level list based on the predefined template.

```python
doc = aw.Document()
builder = aw.DocumentBuilder(doc=doc)
list_collection = doc.lists
# Creates the bulleted list from BulletCircle template.
bulleted_list = list_collection.add_single_level_list(aw.lists.ListTemplate.BULLET_CIRCLE)
# Writes the bulleted list to the resulting document.
builder.writeln('Bulleted list starts below:')
builder.list_format.list = bulleted_list
builder.writeln('Item 1')
builder.writeln('Item 2')
builder.list_format.remove_numbers()
# Creates the numbered list from NumberUppercaseLetterDot template.
numbered_list = list_collection.add_single_level_list(aw.lists.ListTemplate.NUMBER_UPPERCASE_LETTER_DOT)
# Writes the numbered list to the resulting document.
builder.writeln('Numbered list starts below:')
builder.list_format.list = numbered_list
builder.writeln('Item 1')
builder.writeln('Item 2')
doc.save(file_name=ARTIFACTS_DIR + 'Lists.AddSingleLevelList.docx')
```

### See Also

* module [aspose.words.lists](../../)
* class [ListCollection](../)

