230
Chapter 14 Scripting the Visual Tools Object Model
ActiveDocument Object
Use the
ActiveDocument
object to refer to the document currently displayed in the
editor. To access an open document that is not active, use the
Application.DocumentCache
object.
Properties
CanRedo
Syntax
CanRedo: WordBool (read-only)
Description
Boolean. Returns
True
if changes can be re-done.
Example
function Main() {
var sMessage;
sMessage = "CanRedo : ";
with (Application) {
If(ActiveDocument.CanRedo)
sMessage = sM "Yes";
Else
sMessage = sM "No";
MessageBox(sMessage, VersionText, 0);
}
}
CanUndo
Syntax
CanUndo: WordBool (read-only)
Description
Boolean. Returns
True
if changes can be undone.
Example
function Main() {
var sMessage;
sMessage = "CanUndo : ";
with (Application) {
If(ActiveDocument.CanUndo)
sMessage = sM "Yes";
Else
sMessage = sM "No";
MessageBox(sMessage, VersionText, 0);
}
}
Содержание 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...