Share via


GraphicsDeviceManager.PreferredBackBufferWidth Property

Gets or sets the preferred back-buffer width.

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

Syntax

public int PreferredBackBufferWidth { get; set; }

Property Value

The preferred back-buffer width.

Exceptions

Exception type Condition
ArgumentOutOfRangeException BackBufferWidth is not greater than zero.

See Also

Reference

GraphicsDeviceManager Class
GraphicsDeviceManager Members
Microsoft.Xna.Framework Namespace

Programming Guide

How to: Display a Game in Full Screen Mode

Platforms

Xbox 360, Windows XP SP2, Windows Vista