Compartir a través de


Device.Viewport Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets the viewport parameters for the current device.

Namespace:  Microsoft.WindowsMobile.DirectX.Direct3D
Assembly:  Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)

Syntax

'Declaration
Public Property Viewport As Viewport
    Get
    Set
'Usage
Dim instance As Device
Dim value As Viewport

value = instance.Viewport

instance.Viewport = value
public Viewport Viewport { get; set; }
public:
property Viewport Viewport {
    Viewport get ();
    void set (Viewport value);
}
member Viewport : Viewport with get, set

Property Value

Type: Microsoft.WindowsMobile.DirectX.Direct3D.Viewport
A Viewport structure that represents the returned viewport parameters or specifies the viewport parameters to set.

Exceptions

Exception Condition
InvalidCallException

Viewport is invalid, or Viewport describes a region that cannot exist within the render target surface.

Remarks

Viewport can be used to draw on part of the screen. It should be set before any geometry is drawn so the Viewport will take effect.

To draw multiple views within a scene, repeat setting Viewport and draw a geometry sequence for each view.

.NET Framework Security

Platforms

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

Device Class

Device Members

Microsoft.WindowsMobile.DirectX.Direct3D Namespace