Viewport.X Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
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
'Declaration
Public Property X As Integer
public int X { get; set; }
Property Value
Type: System.Int32
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.
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.