4D v16WP Get paragraphs |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16
WP Get paragraphs
|
WP Get paragraphs ( rangeObj ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
rangeObj | Object |
![]() |
Range from which to get paragraphs | |||||
Function result | Object |
![]() |
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.
You want to define padding for the paragraphs only:
$oParagraphs:=WP Get paragraphs($oSelection)
WP SET ATTRIBUTES($oParagraphs;wk padding;20)
Product: 4D
Theme: 4D Write Pro Language
Created: 4D v15 R4
4D Write Pro Reference ( 4D v16)