Share via


ListTemplate.ListLevels Property (Word)

Returns a ListLevels collection that represents all the levels for the specified ListTemplate.

Syntax

expression .ListLevels

expression An expression that returns a ListTemplate object.

Remarks

For information about returning a single member of a collection, see Returning an Object from a Collection.

Example

This example sets the variable myListTemp to the first list template (excluding None) on the Outline Numbered tab in the Bullets and Numbering dialog box (Format menu). Each level in the list has a matching heading style linked to it.

Set myListTemp = _ 
 ListGalleries(wdOutlineNumberGallery).ListTemplates(1) 
For Each mylevel In myListTemp.ListLevels 
 mylevel.LinkedStyle = "Heading " & mylevel.index 
Next mylevel

See Also

Concepts

ListTemplate Object Members

ListTemplate Object