Share via


Viewport.Y Property (Microsoft.DirectX.Direct3D)

Retrieves or sets the pixel coordinate of the upper-left corner of the viewport on the render target surface.

Definition

Visual Basic Public Property Y As Integer
C# public int Y { get; set; }
C++ public:
property int Y {
        int get();
        void set(int value);
}
JScript public function get Y() : int
public function set Y(int);

Property Value

System.Int32
Integer that represents the upper-left corner of the viewport to set or retrieve.

This property is read/write. 

Remarks

Unless rendering is being done only to a subset of the surface, this member can be set to 0.