Command WR APPLY STYLESHEET

4D Write

WR APPLY STYLESHEET

version 6.5


WR APPLY STYLESHEET (area; styleSheetNumber)

ParameterTypeDescription
areaLongint4D Write area
styleSheetNumberLongintStylesheet number

Description

The WR APPLY STYLESHEET command applies to the current selection in the 4D Write area designated by area the style sheet whose number is passed in styleSheetNumber. The formats of the style sheet will then be applied to the selection and the selection will appear as using that style sheet (when the cursor is in the text, the style sheet will be displayed in the style sheet drop-down list from the Style toolbar).

If styleSheetNumber does not correspond to any style sheet, the error 1078 (unknown style sheet) is be returned.

Example

See the example for the WR Create stylesheet command.

See Also

WR Create stylesheet, WR UPDATE STYLESHEET.