Microsoft.Xna.Framework
Class GameComponentCollection

java.lang.Object
  extended by System.Collections.ObjectModel.Collection<IGameComponent>
      extended by Microsoft.Xna.Framework.GameComponentCollection
All Implemented Interfaces:
java.lang.Iterable<IGameComponent>

public final class GameComponentCollection
extends System.Collections.ObjectModel.Collection<IGameComponent>

A collection of game components.

Author:
Halofreak1990

Field Summary
 System.Event<GameComponentCollectionEventArgs> ComponentAdded
          Raised when a component is added to the GameComponentCollection.
 System.Event<GameComponentCollectionEventArgs> ComponentRemoved
          Raised when a component is removed from the GameComponentCollection.
 
Constructor Summary
GameComponentCollection()
           
 
Method Summary
 void ClearItems()
          Removes all children from the collection.
 void RemoveItem(int index)
          Removes a child object in the collection.
 
Methods inherited from class System.Collections.ObjectModel.Collection
Add, Clear, Count, get, IndexOf, Insert, iterator, set
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ComponentAdded

public System.Event<GameComponentCollectionEventArgs> ComponentAdded
Raised when a component is added to the GameComponentCollection.


ComponentRemoved

public System.Event<GameComponentCollectionEventArgs> ComponentRemoved
Raised when a component is removed from the GameComponentCollection.

Constructor Detail

GameComponentCollection

public GameComponentCollection()
Method Detail

ClearItems

public void ClearItems()
Removes all children from the collection.

Overrides:
ClearItems in class System.Collections.ObjectModel.Collection<IGameComponent>

RemoveItem

public void RemoveItem(int index)
Removes a child object in the collection.

Overrides:
RemoveItem in class System.Collections.ObjectModel.Collection<IGameComponent>
Parameters:
index - The index of the item being removed.