The CompEnum object is used to enumerate the composite document’s elements. It is created using the StartEnumeration method of a CompDoc object. The Options parameter of this method allows to control, which elements are to be enumerated.
- CurrentElement
Read-only value. If the GetNextElement method finds a subsequent element to be enumerated, it puts its interface to this property.
Syntax:
Set Elem = Enum.CurrentElement
Elem
An OBJECT receiving the dispatch to the current element
Enum
An object expression that evaluates to a CADRaster enumeration object
- EndOfEnumeration
Read-only value. If the GetNextElement method finds a subsequent element to be enumerated, it returns non-zero and sets this property to zero. Otherwise this property is non-zero.
Syntax:
Ret = Enum.EndOfEnumeration
Ret
SHORT value set to nonzero if there are no more elements to be enumerated
Enum
An object expression that evaluates to a CADRaster enumeration object
- GetNextElement
Finds the next element to be enumerated. If such an element is found, its interface is put to the CurrentElement property, the EndOfEnumeration property is set to zero and this method returns a non-zero value. Otherwise the EndOfEnumeration property is set to non-zero and the GetNextElement method returns zero.
Syntax:
Ret = Enum.GetNextElement()
Ret
Ret SHORT value set to nonzero if there has been found an element to be enumerated
Enum
An object expression that evaluates to a CADRaster enumeration object
- StopEnumeration
Deletes the CompEnum object. Returns 0 on success and non-zero otherwise.
Syntax:
Ret = Enum.StopEnumeration()
Ret
SHORT value set to 0 on success
Enum
An object expression that evaluates to a CADRaster enumeration object