Microsoft Word Suite
220
Example
This example sets the variable
myList
to the fourth list in MyDocument.doc, and then it applies the
third bulleted list template to the list.
set myList to Word list 4 of document "MyDocument.doc"
apply list template myList list template (list template 3 of ¬
(get list template bullet gallery))
Command: apply number default
Adds the default numbering scheme to the paragraphs in the range for the specified list format
object. If the paragraphs are already formatted as a numbered list, this command removes the
numbers and formatting.
Syntax
apply number default list format Required. An expression that returns a list formatobject.
default list behavior enumeration] Optional. Sets a value that specifies whether Word uses new
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 numbers the paragraphs in the selection. If the selection is already a numbered list,
the example removes the numbers and formatting.
apply number default list format of text object of selection
This example sets the variable
myRange
to include 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 numbers are applied to the range.
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 number default list format of myRange
end if
Command: apply page borders to all sections
Applies the specified page-border formatting to all sections in a document.
Syntax
apply page borders to all sections border options Required. An expression that returns a border
options object.