Return the default extension for document filenames.
string:=?DefaultTemplateExtension
Syntax
()
Description
Return the default extension for template filenames.
numeric:=?DefaultView
Syntax
()
Description
Return the default view.
Return Value
0 Draft
1 Page
2 Two page
numeric:=?DisplayMode
Syntax
()
Description
Return the current display mode.
Return Value
2 Draft View
3 Page View
4 Two Page View
boolean:=?DocBlank
Syntax
()
Description
Return True if the current document is blank, False if not.
boolean:=?DocChanged
Syntax
()
Description
Return True if the current document has been modified since the last time it was saved, False if not.
boolean:=?DocModified
Syntax
()
Description
Return True if the active document has been modified since the last time it was saved, False if not.
boolean:=?DocNeedsGenerating
Syntax
()
Description
Return True if you have made any changes to the active document and it may need to be generated, False if not.
numeric:=?DocNumber
Syntax
()
Description
Return the active document number (1-9), or returns 0 if the insertion point is in a document substructure such as a comment, header, or watermark.
Return Value
Value: 0-9.
boolean:=?DocReadOnly
Syntax
()
Description
Return True if the current document is read only, False if not.
string:=?DocumentFont
Syntax
()
Description
Return the document initial font name.
numeric:=?DocumentInformation
Syntax
()
Description
Return the number of characters in the active document.
string:=?DOSName
Syntax
()
Description
Return the active DOS filename.
string:=?DOSPath
Syntax
()
Description
Return the active DOS file path, not including the filename.
string:=?DotLeader
Syntax
()
Description
Return the active dot-leader character.
boolean:=?DoubleSmartQuote
Syntax
()
Description
Return True if QuickCorrect changes double quotes to double smart quotes, False if not.
any:=?DropCapBorderStyle
Syntax
()
Description
Return the active drop-cap border style. Precede with DropCapBegin and end with DropCapEnd.
Return Value
A string specifies a user-defined style.
0 Spacing only
1 Single border
2 Double border
3 Dashed border
4 Dotted border
5 Thick border
6 Extra-thick border
7 Thin-thick border
8 Thick-thin border
9 Thick top-bottom border
10 Button border
11 Column border between
12 Column border all
127 No border
numeric:=?DropCapCharacters
Syntax
()
Description
Return the number of characters in a drop cap.
Example
You have to use DropCapBegin and DropCapEnd in conjunction with this command. Refer to the following code snippet.
DropCapBegin ()
vAdj = ?DropCapCharacters
MessageBox (Status:vW; ;"This drop cap has " + (vAdj) + "characters.")
DropCapEnd (State: Cancel!)
numeric:=?DropCapCharacterSize
Syntax
()
Description
Return the active drop cap character size relative to a line of text.
boolean:=?DropCapContourWrap
Syntax
()
Description
Return the state of Wrap Text around Drop Cap.
Return Value
0 Off
1 On
any:=?DropCapFillStyle
Syntax
()
Description
Return the active drop cap fill style.
Return Value
A string indicates a user-defined style.
0 Fill 10
1 Fill 20
2 Fill 30
3 Fill 40
4 Fill 50
5 Fill 60
6 Fill 70
7 Fill 80
8 Fill 90
9 Fill 100
10 Fill button
127 No fill
numeric:=?DropCapHorizontalAdjustment
Syntax
()
Description
Return the percent a drop cap extends into the left margin.
Example
You must use DropCapBegin and DropCapEnd in conjunction with this command. Refer to the following code snippet.
DropCapBegin ()
vAdj = ?DropCapHorizontalAdjustment
MessageBox (Status:vW; ;"This drop cap is " + (vAdj*100) + "% horizontally adjusted.")
DropCapEnd (State: Cancel!)
boolean:=?DropCapIncludeDescender
Syntax
()
Description
Return the state of Allow for Descender.
Return Value
0 Off
1 On
boolean:=?DropCapIncludeDiacritic
Syntax
()
Description
Return the selection of Allow for Diacritic.
Return Value
0 Do not allow for diacritic
1 Allow for diacritic
boolean:=?DropCapInParagraph
Syntax
()
Description
Return True if the current paragraph contains [Dropcap Definition], False if not.
Return Value
0 Does not contain code
1 Contains code
measurement:=?DropCapKerning
Syntax
()
Description
Return the kerning distance between a drop cap and the text to the right. The default kerning is 0, and the measurement is expressed in WordPerfect units (1200ths of an inch). A negative value reduces the distance; a positive value increases it.
boolean:=?DropCapNoWrap
Syntax
()
Description
Return the state of Wrap Text around Drop Cap.
Return Value
0 On
1 Off
boolean:=?DropCapState
Syntax
()
Description
Return the state of the Drop Cap feature bar.
Return Value
0 Off
1 On
boolean:=?DropCapUseColor
Syntax
()
Description
Return information about whether the text color or a different color is used in a drop-cap character.
Return Value
0 Uses regular text color
1 Uses different color
numeric:=?DropCapVerticalAdjustment
Syntax
()
Description
Return the number of lines to extend a drop cap.
Example
You must use DropCapBegin and DropCapEnd in conjunction with this command. Refer to the following code snippet.
DropCapBegin ()
vAdj = ?DropCapHorizontalAdjustment
MessageBox (Status:vW; ;"This drop cap is " + (vAdj*100) + "% horizontally adjusted.")