Class ModelMeshCollection
Represents a collection of ModelMesh objects.
public sealed class ModelMeshCollection : ReadOnlyCollection<ModelMesh>, IList<ModelMesh>, ICollection<ModelMesh>, IReadOnlyList<ModelMesh>, IReadOnlyCollection<ModelMesh>, IEnumerable<ModelMesh>, IList, ICollection, IEnumerable
- Inheritance
-
ModelMeshCollection
- Implements
- Inherited Members
Properties
this[string]
Retrieves a ModelMesh from the collection, given the name of the mesh.
public ModelMesh this[string meshName] { get; }
Parameters
meshName
stringThe name of the mesh to retrieve.
Property Value
Methods
GetEnumerator()
Returns a ModelMeshCollection.Enumerator that can iterate through a collection.
public ModelMeshCollection.Enumerator GetEnumerator()
Returns
TryGetValue(string, out ModelMesh)
Finds a mesh with a given name if it exists in the collection.
public bool TryGetValue(string meshName, out ModelMesh value)
Parameters
Returns
- bool
true if a mesh was found