GraphicsDeviceManager.ToggleFullScreen Method (Microsoft.Xna.Framework)

Toggles between windowed and fullscreen modes.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public void ToggleFullScreen()

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Note that on platforms that do not support windowed modes this has no affect.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web