ActiveDocument Object
235
Clear
Syntax
Clear();
Description
Clears all text from the active document.
Close
Syntax
Close(wbPromptToSave: WordBool): WordBool;
Description
Boolean. Closes the active document. If
wbPromptToSave
is
True
, the user is
prompted to save any changes. Returns
True
if the document was closed (that is, the
user didn’t cancel saving changes).
Cursor
Syntax
Cursor_ (wbSelect: WordBool);
Description
Boolean. Positions the cursor. If
wbSelect
is
True
, then the current selection is
extended to the new cursor position.
The following values are allowed:
CursorLeft, CursorRight, CursorWordLeft, CursorWordRight, CursorDown,
CursorUp, CursorPageDown, CursorPageUp, CursorDocStart, CursorDocEnd,
CursorLineStart, CursorLine End.
Example
function Main(){
with (Application){
// Select the entire line
ActiveDocument.CursorLineStart(false);
ActiveDocument.CursorLineEnd(true);
}
}
EndUpdate
Syntax
EndUpdate();
Description
Turns on screen updating for the active document.
Example
function Main(){
var iTags = 0;
with (Application){
ActiveDocument.BeginUpdate();
ActiveDocument.CursorDocStart(false);
try{
while (ActiveDocument.GotoNextStartTag(false)){
iTags++;
}
Содержание 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...