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

Home

 
4D v20 R7
WP Paragraph range

WP Paragraph range 


 

WP Paragraph range ( targetObj ) -> Function result 
Parameter Type   Description
targetObj  Object in Range or element
Function result  Object in Range addressing only paragraphs

WP Paragraph range was named WP Create Paragraph range in previous versions of 4D Write Pro. It has been renamed for clarity.

The WP Paragraph range command returns a specific range object that addresses only the paragraphs that intersect with the targetObj you passed as parameter. The paragraph range object returned can be used by WP GET ATTRIBUTES and WP SET ATTRIBUTES to handle paragraph attributes only.  

In targetObj, you can pass:

  • a range, or
  • an element (table / row / paragraph / header / footer / body / section / subsection)

Example  

You want to define padding for the paragraphs only:

 $oParagraphs:=WP Paragraph range($oSelection)
 WP SET ATTRIBUTES($oParagraphs;wk padding;20)



See also 

WP Picture range
WP Selection range
WP Text range

 
PROPERTIES 

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

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v15 R4
Modified: 4D v16 R5
Renamed: 4D v16 R6 (WP Paragraph range)
Modified: 4D v17 R3
Renamed: 4D v17 R5 (WP Paragraph range)

 
ARTICLE USAGE

4D Write Pro Reference ( 4D v20 R7)