Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DrawableGameComponent.GraphicsDevice Property

The GraphicsDevice the DrawableGameComponent is associated with.

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

public GraphicsDevice GraphicsDevice { get; }

Property Value

GraphicsDevice the DrawableGameComponent is associated with.

Exception typeCondition
InvalidOperationExceptionThe GraphicsDevice property cannot be used before Initialize has been called.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions

Show:
© 2014 Microsoft