WR GET STYLESHEET INFO
version 6.5
WR GET STYLESHEET INFO (area; stylesheetNumber; name; applyTo; protected; shortcut)
Parameter | Type | Description | |
area | Longint | 4D Write area | |
stylesheetNumber | Longint | Stylesheet number | |
name | String | Stylesheet name | |
applyTo | Integer | 0=characters, | |
1=paragraphs | |||
protected | Integer | 0= non protected, | |
1= protected | |||
shortcut | String | One character or "" if no shortcut |
Description
The WR GET STYLESHEET INFO command allows you to retrieve information about the style sheet whose number is passed in styleSheetNumber and which is contained in the 4D Write area referenced by area.
• name returns the title of the style sheet.
• applyTo
If applyTo is equal to 0, the style sheet will only apply to characters.
If applyTo is equal to 1, the style sheet will only apply to paragraphs.
• protected
If protected is equal to 0, the style sheet is not protected, thus it is not a system style sheet.
If protected is equal to 1, the style sheet is protected, it is therefore a system style sheet and it cannot be deleted.
shortcut returns the shortcut assigned to the style sheet, if any. It consists of only one character. When using that shortcut you will need to hold down the Ctrl key (on Windows) or the Command key (on Mac OS) while pressing the shortcut key.
If shortcut is an empty string, no shortcut is assigned to styleSheetNumber.
Examples
See examples for the WR SET STYLESHEET INFO, WR DELETE STYLESHEET and WR UPDATE STYLESHEET commands.
See Also