Skip to main content
Version: 20 R7 BETA

WP DELETE STYLE SHEET

WP DELETE STYLE SHEET ( styleSheetObj ) | (wpDoc ; styleSheetName )

ParameterTypeDescription
styleSheetObjObjectStyle sheet object
wpDocObject4D Write Pro document
styleSheetNameTextName of style sheet

Description

The WP DELETE STYLE SHEET command removes the designated paragraph or character style sheet from the current document. When a style sheet is removed, every character or paragraph that it was applied to reverts to its original style (i.e. the default).

This command provides two ways to remove a style sheet. You can specify:

  • the style sheet object (created with the WP New style sheet or returned by the WP Get style sheet command) to remove in the styleSheetType parameter, or
  • the 4D Write Pro document along with the name of the style sheet to remove in the wpDoc and styleSheetName parameters.

Note: The default ("Normal") style sheet can not be deleted.

See also

Accessing document contents by programming
WP Get style sheet
WP Get style sheets
WP IMPORT STYLE SHEETS
WP New style sheet