beautypg.com

Setproperties, Setproperties 27 – Kofax DM API User Manual

Page 296

background image

276 C

HAPTER

4

SetProperties

SetProperties

Use this method to set an object with a collection of properties. Any
previously set properties are deleted.

Syntax

PCDDocObject.SetProperties( strPropList )

PCDPropertyList.SetProperties( strPropList )

PCDPropertyLists.SetProperties( strPropList )

Parameter

Returns

Returns an

HRESULT

to receive the result of the call.

S_OK

indicates

success. Languages such as JavaScript, Visual Basic, and VBScript
return this as a function value.

Related Items

See the following objects:

PCDDocObject
PCDPropertyList

PCDPropertyLists

See the following properties:

ErrDescription
ErrNumber

strPropList

A pointer to the object (often a

PCDPropertyList

object) from which the

PCDDocObject

should

copy the new properties.