Table of Contents

Class ModelMeshCollection

Namespace
Microsoft.Xna.Framework.Graphics
Assembly
MonoGame.Framework.dll

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 string

The name of the mesh to retrieve.

Property Value

ModelMesh

Methods

GetEnumerator()

Returns a ModelMeshCollection.Enumerator that can iterate through a ModelMeshCollection.

public ModelMeshCollection.Enumerator GetEnumerator()

Returns

ModelMeshCollection.Enumerator

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

meshName string

The name of the mesh to find.

value ModelMesh

The mesh named meshName, if found.

Returns

bool

true if a mesh was found