Table of Contents

Class ModelBoneCollection

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

Represents a set of bones associated with a model.

public class ModelBoneCollection : ReadOnlyCollection<ModelBone>, IList<ModelBone>, ICollection<ModelBone>, IReadOnlyList<ModelBone>, IReadOnlyCollection<ModelBone>, IEnumerable<ModelBone>, IList, ICollection, IEnumerable
Inheritance
ModelBoneCollection
Implements
Inherited Members

Constructors

ModelBoneCollection(IList<ModelBone>)

Initializes a new instance of the ModelBoneCollection class that is a read-only wrapper around the specified list.

public ModelBoneCollection(IList<ModelBone> list)

Parameters

list IList<ModelBone>

The list to wrap.

Properties

this[string]

Retrieves a ModelBone from the collection, given the name of the bone.

public ModelBone this[string boneName] { get; }

Parameters

boneName string

The name of the bone to retrieve.

Property Value

ModelBone

Methods

GetEnumerator()

Returns a ModelBoneCollection.Enumerator that can iterate through a collection.

public ModelBoneCollection.Enumerator GetEnumerator()

Returns

ModelBoneCollection.Enumerator

TryGetValue(string, out ModelBone)

Finds a bone with a given name if it exists in the collection.

public bool TryGetValue(string boneName, out ModelBone value)

Parameters

boneName string

The name of the bone to find.

value ModelBone

The bone named boneName, if found.

Returns

bool

true if the bone was found