ActiveDocument Object
231
CaretPosX
Syntax
CaretPosX: integer (read-only)
Description
The X-axis caret position.
Example
function Main(){
with (Application){
if (ActiveDocument.CaretPosX > 1){
ActiveDocument.CursorLineStart(false);
}
}
}
CaretPosY
Syntax
CaretPosY: integer (read-only)
Description
The Y-axis caret position.
Example
function Main(){
with (Application){
if (ActiveDocument.CaretPosY > 1){
ActiveDocument.CursorDocStart(false);
}
}
}
Filename
Syntax
Filename: OleString (read-only)
Description
File name of the active document.
Example
function Main() {
var sMessage;
sMessage = "Your file name is: ";
with (Application) {
sMessage = sM ActiveDocument.Filename;
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...