Skip to main content
Version: 21 R3

WP Picture range

WP Picture range ( targetObj : Object ) : Object

ParameterTypeDescription
targetObjObject→Range or element
Function resultObject←Range object containing pictures only

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