This collection is currently managed by a object.
Methods
- Func Add() As
- Adds a new material to the material collection.
- Func Item( iIndex) As
-
Returns a material from its index in the Material collection.
- Parameters:
-
- iIndex
- The index of the material to retrieve in the collection of materials. Compared with other collections, you cannot use the name of the material as argument. dd>
- Returns:
- The retrieved material
- Example:
-
The following example returns in MyMaterial the sixth
material in a material collection.
Dim MyMaterial As Material Set MyMaterial = Materials.Item(6)
dd>
- Parameters:
-
- iIndex
- The index of the material to retrieve in the sorted collection of materials. Compared with other collections, you cannot use the name of the material as argument. dd>
- iMode
- The sorted mode of material collection
- Possible mode values are:
- 0: Alphabetical order
- 1: Inverse alphabetical order
- Returns:
- The retrieved material dd>