DocumentProperty properties

The DocumentProperty interface supports two properties, name and Value.

name 
Access   Read-only 
Type  String 
Description  Returns the property name. 
Usage 
JScript  DocumentProperty_object.name; 
VBScript  DocumentProperty_object.name 
Example 
// SoftQuad Script Language JSCRIPT:
var curDoc, curDocProps, prop1;
curDoc=Application.ActiveDocument;
curDocProps=curDoc.CustomDocumentProperties;
if (curDocProps.count!=0) {
  Application.Alert(curDocProps.item(1).name);
}
 

Value 
Access   Read-only 
Type  String 
Description  Returns the property value. 
Usage 
JScript  DocumentProperty_object.Value; 
VBScript  DocumentProperty_object.Value 
Example 
// SoftQuad Script Language JSCRIPT:
var curDoc, curDocProps, prop1;
curDoc=Application.ActiveDocument;
curDocProps=curDoc.CustomDocumentProperties;
if (curDocProps.count!=0) {
  Application.Alert(curDocProps.item(1).Value);
}
 


Right arrow
Next Topic
Left arrow
Previous Topic
Table of contents
Table of Contents

Copyright © SoftQuad Software Inc. 1999