4D v17

WP Create picture range

Home

 
4D v17
WP Create picture range

WP Create picture range 


 

WP Create picture range ( targetObj ) -> Function result 
Parameter Type   Description
targetObj  Object in Range or element reference or 4D Write Pro document
Function result  Object in 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:

  • a range, or
  • an element reference (table / row / paragraph / header / footer / body), or
  • a 4D Write Pro document.

Example  

You want to change the border color of pictures only:

 $oPicts:=WP Create picture range($oSelection)
 WP SET ATTRIBUTES($oPicts;wk border color;"blue")



See also 

Handling pictures
Using commands from the Styled Text theme
WP Add picture
WP Create paragraph range
WP Get selection
WP INSERT PICTURE

 
PROPERTIES 

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

This command can be run in preemptive processes

 
HISTORY 

Created: 4D v15 R4
Renamed: 4D v16 R6

 
ARTICLE USAGE

4D Write Pro Reference ( 4D v17)