This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
WP DELETE STYLE SHEET

WP DELETE STYLE SHEET 


 

WP DELETE STYLE SHEET ( styleSheetObj ) | (wpDoc ; styleSheetName ) 
Parameter Type   Description
styleSheetObj  Object in Style sheet object
wpDoc  Object in 4D Write Pro document
styleSheetName  String in Name of style sheet

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

 
PROPERTIES 

Product: 4D
Theme: 4D Write Pro Language
Number: 1652

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v18

 
ARTICLE USAGE

4D Write Pro Reference ( 4D v20 R7)