Viewport.X Property
Gets or sets the pixel coordinate of the upper-left corner of the viewport on the render-target surface.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
Syntax
public int X { get; set; }
Property Value
The upper-left corner of the viewport to set or get.
Remarks
Unless rendering is being done only to a subset of the surface, this member can be set to 0.
See Also
Reference
Viewport Structure
Viewport Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows 7, Windows Vista, Windows XP