238
Chapter 14 Scripting the Visual Tools Object Model
InsertTag
Syntax
InsertTag(sStartTag, sEndTag: OleVariant; wbOverwriteSelection:
WordBool);
Description
Boolean. Inserts the passed tag pair at the current cursor position, overwriting the
selection if
wbOverwriteSelection
is
True
. The cursor is positioned between the
start and end tags after this operation. If
wbOverwriteSelection
is
False
, the tags
surround the current selection.
Example
function Main(){
with (Application){
ActiveDocument.CursorDocEnd(false);
ActiveDocument.InsertTag(’<a href="http://www.macromedia.com">’,
’</a>’, true);
}
}
InsertText
Syntax
InsertText(InsertStr: OleVariant; wbOverwriteSelection: WordBool);
Description
Boolean. Inserts the passed string at the current cursor position. If
wbOverwriteSelection
is
True,
this function overwrites the selection.
LastSavedDate
Syntax
LastSavedDate();
Description
Returns the datetime value for the last save of the active document file.
Example
function Main(){
with (Application){
SetStatusText(’Last save: ’ + ActiveDocument.LastSavedDate());
}
}
Syntax
Print(wbNoPrompt: WordBool);
Description
Boolean. Prints the active document. If
wbNoPrompt
is
False,
prompts the user for
print settings.
Redo
Syntax
Redo();
Description
Performs a single
redo
operation.
Содержание ColdFusion Server 5
Страница 18: ...xviii About This Book...
Страница 26: ...8 Chapter 1 Setting Up the Product...
Страница 42: ...24 Chapter 2 Configuring Browsers and Servers...
Страница 60: ...42 Chapter 3 Exploring the Workspace...
Страница 100: ...82 Chapter 6 Editing Pages...
Страница 126: ...108 Chapter 7 Using Web Development Languages...
Страница 212: ...194 Chapter 13 Customizing the Development Environment...
Страница 320: ...302 Glossary...