Sdílet prostřednictvím


Viewport.Y 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 (in microsoft.xna.framework.dll)

Syntax

public int Y { 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 XP SP2, Windows Vista