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.

Viewport.AspectRatio Property

Gets the aspect ratio used by the viewport

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

public float AspectRatio { get; }

Property Value

The aspect ratio of the viewport.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions

Show:
© 2014 Microsoft