Interlockings.Item



Item(vItem As Variant) As Interlocking

Parameters

vItem As Variant
Index or name of the "Interlocking" object within the collection.

If the parameter is a numerical value, the object is searched by its index (>= 0 and <= Count-1).
If it is an alphanumerical value, the object is searched by its unique name.
ED
avaliable
RT
not used

Remarks

Returns the object "Interlocking" from the collection, which is identified by the parameter vItem.

The parameter vItem can have two values:

Hint:
The returned object should always be checked on Nothing, for the case that no object was found for the search criteria.

Sample:


Sub InterlockingsItem()

Dim zInterlockings As Interlockings 'Object from type Interlockings
Dim zInterlocking As Interlocking   'Child object from type Interlockings

'Fill the objects
Set zInterlockings = MyWorkspace.ActiveDocument.Interlockings
'Returns an interlocking out of the list
Set zInterlocking = zInterlockings.Item("Interlocking 1")
'Rename the interlocking
zInterlocking.DynProperties("Name") = "My_Interlocking"

End Sub

See Also

Interlockings, Interlocking