Previous Document Next Document
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 by specifying its index.

Parameters
Description
Index
Specifies the data item by its index number
Name
Represents a string that uniquely identifies a property
ID
Represents a unique identifier of a property within CorelDRAW

The following code 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 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.