Partilhar via


ModelMeshCollection.Item Property (String)

Retrieves a ModelMesh from the collection, given the name of the mesh.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public ModelMesh this [
         string meshName
] { get; }

Property Value

The ModelMesh identified by meshName.

Exceptions

Exception type Condition
KeyNotFoundException meshName was not found in this ModelMeshCollection.

See Also

Reference

ModelMeshCollection Class
ModelMeshCollection Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista