Microsoft Word Suite
218
Command: apply bullet default
Adds bullets and formatting to the paragraphs in the range for the specified list format object. If the
paragraphs are already formatted with bullets, this method removes the bullets and formatting.
Syntax
apply bullet default list format Required. An expression that returns a list format object.
[default list behavior enumeration] Optional. Sets a value that specifies whether Word uses
Weboriented formatting for better list display. Can be either of the following constants: word8
list behavior (use formatting compatible with Microsoft Word 98) or word9 list behavior (use
Weboriented formatting). For compatibility reasons, the default constant is word8 list
behavior, but in new procedures you should use word9 list behavior to take advantage of
improved Weboriented formatting with respect to indenting and multilevel lists.
Example
This example adds bullets and formatting to the paragraphs in the selection. If there are already
bullets in the selection, the example removes the bullets and formatting.
apply bullet default list format of text object of selection
This example adds a bullet and formatting to, or removes them from, the second paragraph in
MyDoc.doc.
apply bullet default list format of text object of paragraph 2 of ¬
document
"MyDoc.doc"
This example sets the variable
myRange
to a range that includes paragraphs three through six of the
active document, and then it checks to see whether the range contains list formatting. If there's no
list formatting, default bullets are added.
set myDoc to active document
set myRange to create range myDoc start (start of content of text object ¬
of paragraph 3 of myDoc) end (end of content of text object of ¬
paragraph 6 of myDoc)
if list type of list format of myRange is list no numbering then
apply bullet default list format of myRange
end if
Command: apply list format template
Applies a set of list-formatting characteristics to the specified list format object.
Syntax
apply list format template list format Required. An expression that returns a list format object.
list template list template Required list template object. The list template to be applied.
[continue previous list Boolean] Optional. True to continue the numbering from the previous
list; false to start a new list.
[apply to enumeration] Optional. The portion of the list that the list template is to be applied to.
Can be one of the following: list apply to selection, list apply to whole list, or list apply to
this point forward.