WR Get doc property
version 6.5
WR Get doc property (area; property) Real
Parameter | Type | Description | |
area | Longint | 4D Write area | |
property | Integer | Number of the property to read |
Function result Real Value for the property tested
Description
The WR Get doc property command allows you to get the properties of the document currently opened in the 4D Write area referenced by area.
property can be set using one of the constants of the "WR Document properties" theme. You can either pass the constant name or its value.
For some properties, WR Get doc property returns 1 (True) or 0 (False). An example is property 2 (wr view ruler).
For other properties, WR Get doc property returns a number expressed in the current default unit. An example is property 37 (wr paper width).
For more information about the constants of the "WR Document properties" theme, refer to the description of the WR SET DOC PROPERTY command.
Examples
See the examples for the WR SET DOC PROPERTY, WR INSERT PAGE NUMBER, WR GET CURSOR POSITION and WR SET PICTURE IN PAGE INFO commands.
See Also