Object Model Reference : Classes : P : Properties : Methods : Properties.Description |
Sub Description(Index As Long, Name As String, ID As Long)
Member of Properties
The Description method returns the name and ID of a data item as specified by index number.
Parameter
|
Description
|
Index
|
Specifies the data item by its index number
|
Name
|
Specifies the data item by its name
|
ID
|
Specifies the data item by its ID
|
The following VBA example shows the list of all properties and their values for the active document.
Sub Test() |
Dim s As String, i As Long |
Dim Name As String, ID As Long |
s = "Document property list:" |
For i = 1 To ActiveDocument.Properties.Count |
ActiveDocument.Properties.Description i, Name, ID |
s = s & vbCr & "<" & Name & "," & ID & "> = " |
s = s & ActiveDocument.Properties.ItemByIndex(i) |
Next i |
MsgBox s |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.