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

Home

 
4D v20 R7
WP Picture range

WP Picture range 


 

WP Picture range ( targetObj ) -> Function result 
Parameter Type   Description
targetObj  Object in Range or element
Function result  Object in Range object containing pictures only

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

The WP 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 (table / row / paragraph / header / footer / body / section / subsection)

Example  

You want to change the border color of pictures only:

 $oPicts:=WP 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 INSERT PICTURE
WP Paragraph range
WP Selection range
WP Text range

 
PROPERTIES 

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

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

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

 
ARTICLE USAGE

4D Write Pro Reference ( 4D v20 R7)