Purpose
This function sets the current value of a public property of the document, referencing it by index.
It can therefore be used to build a generic document service that modifies documents without having to know the type.
Syntax
IDDocument doc = new() // The document to be modified
//
doc.SetProperty(property index, value)
//
doc.SetProperty(property index, value)
Arguments
Property Index | An integer from 1 to the number of public properties of the document specifying which property is to be set. If the index is outside the values specified, an exception will be thrown. |
Value | The new value that the property is to take. |
- The expression passed in the value parameter can be of any basic type, but it is best to ensure that it matches the type of property to be set. For example, when setting a String property, a string expression should be used in the value parameter.
Changed on: 15/12/2022 / From version: 6.5.2680