4D v17WP Create picture range |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v17
WP Create picture range
|
WP Create picture range ( targetObj ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
targetObj | Object |
![]() |
Range or element reference or 4D Write Pro document | |||||
Function result | Object |
![]() |
Range object containing pictures only | |||||
WP Create picture range was named WP Get pictures in previous versions of 4D Write Pro. It has been renamed for clarity.
The WP Create picture range command returns a specific range object that addresses only the pictures contained in the targetObj you passed as parameter. The image range object returned can be used by WP GET ATTRIBUTES and WP SET ATTRIBUTES to handle picture attributes.
In targetObj, you can pass:
You want to change the border color of pictures only:
$oPicts:=WP Create picture range($oSelection)
WP SET ATTRIBUTES($oPicts;wk border color;"blue")
Handling pictures
Using commands from the Styled Text theme
WP Add picture
WP Create paragraph range
WP Get selection
WP INSERT PICTURE
Product: 4D
Theme: 4D Write Pro Language
Number:
1347
Created: 4D v15 R4
Renamed: 4D v16 R6
4D Write Pro Reference ( 4D v17)