Microsoft Word Suite
140
An easy way to apply list formatting is to use the
apply bullet default
, and
apply number default
commands, which correspond, respectively, to the first list format (excluding None) on each tab in
the Bullets and Numbering dialog box.
To apply a format other than the default format, use the
apply list template
command, which allows
you to specify the list format (list template) you want to apply.
Returning the list or list template
To return the list or list template from the first paragraph in the specified range, use the Word list or
list template property.
Remarks
To access the list formatting properties and commands available for the specified range, use the list
format property with a text range object. The following example applies the default bullet list format
to the second paragraph in the active document.
apply bullet default list format of text object of paragraph 2 of ¬
active
document
However, if there's already a list defined in your document, you can access a specific Word list
object by using the Word lists element of the document. The following example changes the format
of the list created in the preceding example to the first number format on the Numbered tab in the
Bullets and Numbering dialog box.
apply list template Word list 1 of active document list template ¬
list template 1 of list gallery 2
Properties
Word list
Returns a
Word list
object that represents the first formatted list contained in the specified list
format object. Read-only.
If the first paragraph in the range for the list format object is not formatted as a list, the list
property returns nothing.
list level number
Returns or sets the list level for the first paragraph in the specified list format object.
Read/write.
list string
Returns a string that represents the appearance of the list value of the first paragraph in the
range for the specified list format object. For example, the second paragraph in an alphabetical
list would return B. Read-only.
For a bulleted list, you will need to apply the correct font in order to see the string. Most
bullets use the Symbol or Wingdings font.
To return the numeric value of the paragraph, use the list value property.