4D v17WP Create paragraph range |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v17
WP Create paragraph range
|
WP Create paragraph range ( targetObj ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
targetObj | Object |
![]() |
Range or element reference or 4D Write Pro document | |||||
Function result | Object |
![]() |
Range addressing only paragraphs | |||||
WP Create paragraph range was named WP Get paragraphs in previous versions of 4D Write Pro. It has been renamed for clarity.
The WP Create paragraph range command returns a specific range object that addresses only the paragraphs contained in 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:
You want to define padding for the paragraphs only:
$oParagraphs:=WP Create paragraph range($oSelection)
WP SET ATTRIBUTES($oParagraphs;wk padding;20)
Product: 4D
Theme: 4D Write Pro Language
Number:
1346
Created: 4D v15 R4
Modified: 4D v16 R5
Renamed: 4D v16 R6
4D Write Pro Reference ( 4D v17)