4D v16

WP Get paragraphs

Home

 
4D v16
WP Get paragraphs

WP Get paragraphs 


 

WP Get paragraphs ( rangeObj ) -> Function result 
Parameter Type   Description
rangeObj  Object in Range from which to get paragraphs
Function result  Object in Range addressing only paragraphs

The WP Get paragraphs command returns a specific range object that addresses only the paragraphs contained in the rangeObj you passed as parameter. The paragraph range object returned must be used by WP GET ATTRIBUTES and WP SET ATTRIBUTES to handle paragraph attributes only. 

In rangeObj, pass a valid 4D Write Pro standard range object. A rangeObj is a part of a 4D Write Pro document; it can be created by the or WP Get range command.

Example  

You want to define padding for the paragraphs only:

 $oParagraphs:=WP Get paragraphs($oSelection)
 WP SET ATTRIBUTES($oParagraphs;wk padding;20)



See also 

WP Get pictures
WP Get selection

 
PROPERTIES 

Product: 4D
Theme: 4D Write Pro Language

This command can be run in preemptive processes

 
HISTORY 

Created: 4D v15 R4

 
ARTICLE USAGE

4D Write Pro Reference ( 4D v16)