272
Chapter 15 Scripting the Visual Tools Object Model
Project object
The
Project
object provides a basic set of properties and methods for scripting
project maintenance tasks.
The
ProjectManager
and
DeploymentManager
objects extend the capabilities of the
Project
object. For more information, see
“ProjectManager object” on page 274
and
“DeploymentManager object” on page 280
.
Properties
ActiveProjectFile
Syntax
ActiveProjectFile (read-only)
Description
Filename of the active project or empty string if no project is open.
Methods
AddFileToProject
Syntax
AddFileToProject(const wsFilename: WideString): WordBool;
Description
Boolean. Adds the passed file to the active project. The main project folder or a
subfolder of the main project must contain the file.
CloseProject
Syntax
CloseProject(wbCloseOpenFiles: WordBool): WordBool;
Description
Boolean. Closes the active project, if any. If
wbCloseOpenFiles
is
True
, then all open
files are closed.
OpenProject
Syntax
OpenProject(const wsProjectFile: WideString): WordBool;
Description
Boolean. Opens the passed project file, making it the active project. Pass an empty
string to display the Open Project dialog box.
RemoveFileFromProject
Syntax
RemoveFileFromProject(const wsFilename: WideString): WordBool;
Description
Boolean. Removes the passed file from the active project.
Содержание HOMESITE
Страница 11: ...Contents xi Table of CommandID values 310 Table of SettingID values 314 Glossary 323...
Страница 12: ...xii Contents...
Страница 20: ...xx About This Book...
Страница 28: ...8 Chapter 1 Setting Up the Product...
Страница 70: ...50 Chapter 4 Managing Files...
Страница 88: ...68 Chapter 5 Writing Code and Web Content...
Страница 116: ...96 Chapter 6 Editing Pages...
Страница 148: ...128 Chapter 7 Using Web Development Languages...
Страница 190: ...170 Chapter 11 Deploying Files...
Страница 210: ...190 Chapter 12 Testing and Maintaining Web Pages...
Страница 216: ...196 Chapter 13 Extending the Help System...
Страница 350: ...330 Glossary...
Страница 358: ...338 Index...