Share via


Viewport.MaxZ Property (Microsoft.DirectX.Direct3D)

Retrieves or sets the maximum value of the clip volume.

Definition

Visual Basic Public Property MaxZ As Single
C# public float MaxZ { get; set; }
C++ public:
property float MaxZ {
        float get();
        void set(float value);
}
JScript public function get MaxZ() : float
public function set MaxZ(float);

Property Value

System.Single
Integer that represents the maximum z-value of the clipping volume.

This property is read/write. 

Remarks

MaxZ, together with MinZ, specifies the range of depth values into which a scene is rendered. Most applications set this value to 1.0. Clipping is performed after the projection matrix is applied.