Skip to main content
Version: Next

WP Picture range

WP Picture range ( targetObj ) : Object

ParameterTypeDescription
targetObjObjectRange or element
Function resultObjectRange object containing pictures only

Compatibility

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

Description

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