Share via


Viewport.Width Property (Microsoft.DirectX.Direct3D)

Retrieves or sets the width dimension of the viewport on the render target surface, in pixels.

Definition

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

Property Value

System.Int32
Integer that represents the width 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 should be set to the width dimension of the render target surface.