共用方式為


GraphicsDeviceManager.IsFullScreen Property

Gets or sets a value that indicates whether the device should start in full-screen mode.

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

Syntax

public bool IsFullScreen { get; set; }

Property Value

Value that indicates whether the device should start in full-screen mode.

Remarks

If no devices are present that support full screen, or the underlying host supports only full screen, this value may be ignored. This value has no effect on Xbox 360.

See Also

Reference

GraphicsDeviceManager Class
GraphicsDeviceManager Members
Microsoft.Xna.Framework Namespace

Programming Guide

How to: Restrict Graphics Devices to Widescreen Aspect Ratios in Full Screen

Platforms

Xbox 360, Windows XP SP2, Windows Vista