Method: Item for DocumentProperties <DataPlugin>
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Methods > Method: Item for DocumentProperties <DataPlugin>
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)
| Object | DocumentProperties <DataPlugin> Object with this method |
| PropNameOrIndex | Variant Specifies the name or the index of the custom property. |
| oDocumentProperty | DocumentProperty <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
