DIAdem Help

Method: Item for DocumentProperties <DataPlugin>

  • Updated2024-09-12
  • 1 minute(s) read

Method: Item for DocumentProperties <DataPlugin>

Returns a document's meta property not allocated to a namespace. A document might be an Office file in XML format or a PDF, JPEG, PNG, or TIFF file.

Set oDocumentProperty = Object.Item(PropNameOrIndex)
ObjectDocumentProperties <DataPlugin>
Object with this method
PropNameOrIndexVariant
Specifies the name or the index of the custom property.
oDocumentPropertyDocumentProperty <DataPlugin>
Returned object
Note  You can always omit the Item method because it is the standard element of the collection.

The following example transfers the names and values of a document's meta properties into the data set properties:

Dim oMyProperties, i
Set oMyProperties = Document.Properties
For i = 1 to oMyProperties.Count 
  Call Root.Properties.Add(oMyProperties(i).Name, oMyProperties(i).Value)
Next

Log in to get a better experience