GameComponentCollection Class (Microsoft.Xna.Framework)


Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public sealed class GameComponentCollection : Collection<T>

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The GameComponentCollection type exposes the following members.

  Platforms Name Description
  Platforms Name Description
ClearItems Removes every GameComponent from this GameComponentCollection. Triggers Microsoft.Xna.Framework.GameComponentCollection.OnComponentRemoved once for each GameComponent removed. (Overrides Collection<T>.ClearItems().)
InsertItem  (Overrides Collection<T>.InsertItem().)
RemoveItem  (Overrides Collection<T>.RemoveItem().)
SetItem  (Overrides Collection<T>.SetItem().)
  Platforms Name Description
ComponentAdded Event that is triggered when a GameComponent is added to this GameComponentCollection
ComponentRemoved Event that is triggered when a GameComponent is removed from this GameComponentCollection
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop