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

Home

 
4D v20 R7
WP Get style sheets

WP Get style sheets 


 

WP Get style sheets ( wpDoc ; type ) -> Function result 
Parameter Type   Description
wpDoc  Object in 4D Write Pro document
type  Longint in Type of style sheet
Function result  Collection in Collection of style sheet objects

The WP Get style sheets command returns a collection of all the style sheet objects of the defined type in wpDoc.

In the wpDoc parameter, pass the 4D Write Pro document with the style sheets you want to get.

The type parameter specifies the type of style sheet to return. The available types are:

  • wk type character for character style sheets
  • wk type paragraph for paragraph style sheets

Example  

You want to retrieve a collection of all character style sheets:

 C_COLLECTION($styleSheets)
 $styleSheets:=WP Get style sheets(myDoc;wk type character)



See also 

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

 
PROPERTIES 

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

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v18

 
ARTICLE USAGE

4D Write Pro Reference ( 4D v20 R7)