[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.ListTemplateCollection.Add

Add Method

Add(bool)

Creates a new list template and adds it to the collection of list templates in the document.

Declaration
public ListTemplate Add(bool isMultiLevel)
Parameters
Type Name Description
bool isMultiLevel

Indicates whether the new list template should be multilevel.

Returns
Type Description
ListTemplate

The newly created list template.

Add(bool, string)

Creates a new list template and adds it to the collection of list templates in the document.

Declaration
public ListTemplate Add(bool isMultiLevel, string name)
Parameters
Type Name Description
bool isMultiLevel

Indicates whether the new list template should be multilevel.

string name

The name for the list template.

Returns
Type Description
ListTemplate

The newly created list template.

Add(Style, string)

Creates a new list template that references a list style and adds it to the collection of list templates in the document.

Declaration
public ListTemplate Add(Style style, string name)
Parameters
Type Name Description
Style style

A list style.

string name

The name for the list template.

Returns
Type Description
ListTemplate

The newly created list template.

Add(BuiltInListTemplateId, string)

Creates a new list template based on a predefined template and adds it to the collection of lists templates in the document.

Declaration
public ListTemplate Add(BuiltInListTemplateId templateId, string name)
Parameters
Type Name Description
BuiltInListTemplateId templateId

The id of a built in list template.

string name

The name for the list template.

Returns
Type Description
ListTemplate

The newly created list template.