Class ListLevel (Word VBA)

The class ListLevel represents a single list level, either the only level for a bulleted or numbered list or one of the nine levels of an outline numbered list. The ListLevel object is a member of the ListLevels collection.


Dim lll as ListLevel
Set lll = ActiveDocument.ListTemplates(1).ListLevels(Index:=1)

For Each

Here is an example of processing the ListLevel items in a collection.


Dim lev As ListLevel
r = 0 
For Each lev In ListGalleries(wdOutlineNumberGallery) _ 
 .ListTemplates(6).ListLevels 
 lev.Alignment = wdListLevelAlignLeft 
 lev.NumberPosition = r 
 lev.TextPosition = r 
 lev.TrailingCharacter = wdTrailingSpace 
 r = r + 18 
Next lev

Methods

ApplyPictureBullet - Formats a paragraph or range of paragraphs with a picture bullet.

Properties

Alignment returns or sets a WdListLevelAlignment constant that represents the alignment for the list level of the list template.

Font returns or sets a Font object that represents the character formatting of the specified object.

Index returns a Long that represents the position of an item in a collection.

LinkedStyle returns or sets the name of the style that's linked to the specified ListLevel object.

NumberFormat returns or sets the number format for the specified list level.

NumberPosition returns or sets the position (in points) of the number or bullet for the specified ListLevel object.

NumberStyle returns or sets the number style for the ListLevel object.

PictureBullet returns an InlineShape object that represents a picture bullet.

ResetOnHigher sets or returns the list level that must appear before the specified list level restarts numbering at 1.

StartAt returns or sets the starting number for the specified ListLevel object.

TabPosition returns or sets the tab position for the specified ListLevel object.

TextPosition returns or sets the position (in points) for the second line of wrapping text for the specified ListLevel object.

TrailingCharacter returns or sets the character inserted after the number for the specified list level.

Font - Contains font attributes (such as font name, font size and color) for an object.

InlineShape - Represents an object in the text layer of a document. An inline shape can only be a picture, an OLE object, or an ActiveX control. The InlineShape object is a member of the InlineShapes collection. The InlineShapes collection contains all the shapes that appear inline in a document, range, or selection.