共用方式為


GraphicsDeviceManager.PreferredBackBufferHeight Property

Gets or sets the preferred back-buffer height.

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

Syntax

public int PreferredBackBufferHeight { get; set; }

Property Value

The preferred back-buffer height.

Exceptions

Exception type Condition
ArgumentOutOfRangeException BackBufferHeight 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