Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)
A view port is a rectangle that defines how a 3-D scene is rendered into a 2-D window. A view port also defines an area on a device into which objects are rendered.
A view port structure is a rendering surface such as a 3-D renderer that writes per-pixel scene data (such as color) to a render target.
The X, Y, Width, and Height members describe the position and dimensions of the Viewport on the render-target surface. Usually, applications render to the entire target surface; when rendering on a 640x480 surface, these members should be 0, 0, 640, and 480, respectively. The MinZ and MaxZ properties typically are set to 0.0 and 1.0, but can be set to other values to achieve specific effects. For example, setting them both to 0.0 can force the system to render objects to the foreground of a scene, while setting both to 1.0 can force the objects into the background.
Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.