Tesla Graphics Engine Documentation (January 2012)
MaterialCollection Class
TeslaTesla.GraphicsMaterialCollection
A material collection that represents a complete set of materials in a TEM file, in the order they appear in the file.
Declaration Syntax
C#
public sealed class MaterialCollection : IEnumerable<Material>, 
	IEnumerable, ISavable
Members
All Members Constructors Methods Properties



Icon Member Description
MaterialCollection()()()()
Creates a new MaterialCollection.

MaterialCollection(String)
Creates a new MaterialCollection.

Add(Material)
Adds a new material to the collection.

Count
Gets the number of materials contained in the collection.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetEnumerator()()()()
Returns an enumerator that iterates through the collection.

GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Item[([( Int32])])
Gets a material in the collection based on a zero-based index.

Item[([( String])])
Gets a material in the collection based on its name. If there are multiple materials in the collection with the same name, the first material is returned.

Name
Gets or sets the name of the collection.

Read(ISavableReader)
Deserializes the object and populates it from the input.

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Write(ISavableWriter)
Serializes the object and writes it to the output.

Inheritance Hierarchy
Object
MaterialCollection

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)