Class ListFormat (Word VBA)
The class ListFormat represents the list formatting attributes that can be applied to the paragraphs in a range.
Class Range gives access to class ListFormat.
Dim lft as ListFormat
Set lft = ActiveDocument.Range.ListFormat
Methods
ApplyBulletDefault - Adds bullets and formatting to the paragraphs in the range for the specified ListFormat object.
ApplyListTemplate - Applies a set of list-formatting characteristics to the specified ListFormat object.
ApplyListTemplateWithLevel - Applies a set of list-formatting characteristics, optionally for a specified level.
ApplyNumberDefault - Adds the default numbering scheme to the paragraphs in the range for the specified ListFormat object.
ApplyOutlineNumberDefault - Adds the default outline-numbering scheme to the paragraphs in the range for the specified ListFormat object.
CanContinuePreviousList - Returns a WdContinue constant (wdContinueDisabled, wdResetList, or wdContinueList) that indicates whether the formatting from the previous list can be continued.
ConvertNumbersToText - Changes the list numbers and LISTNUM fields in the specified ListFormat object to text.
CountNumberedItems - Returns the number of bulleted or numbered items and LISTNUM fields in the specified ListFormat object.
ListIndent - Increases the list level of the paragraphs in the range for the specified ListFormat object, in increments of one level.
ListOutdent - Decreases the list level of the paragraphs in the range for the specified ListFormat object, in increments of one level.
RemoveNumbers - Removes numbers or bullets from the specified list.
Properties
List returns a List object that represents the first formatted list contained in the specified ListFormat object.
ListLevelNumber returns or sets the list level for the first paragraph in the specified ListFormat object.
ListPictureBullet returns the InlineShape object that represents the picture used as a bullet in a picture bulleted list.
ListString returns a String that represents the appearance of the list value of the first paragraph in the range for the specified ListFormat object. For example, the second paragraph in an alphabetical list would return B.
ListTemplate returns a ListTemplate object that represents the list formatting for the specified ListFormat object.
ListType returns the type of lists that are contained in the range for the specified ListFormat object.
ListValue returns the numeric value of the first paragraph in the range for the specified ListFormat object.
SingleList true if the specified ListFormat object contains only one list.
SingleListTemplate true if the entire ListFormat object uses the same list template.
Related Classes
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.
List - Represents a single list format that's been applied to specified paragraphs in a document. The List object is a member of the Lists collection.
ListTemplate - Represents a single list template that includes all the formatting that defines a list. The ListTemplate object is a member of the ListTemplates collection.