Share via


Light.ZPosition Property (Microsoft.DirectX.Direct3D)

Retrieves or sets a Z-coordinate value that indicates the position of the light.

Definition

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

Property Value

System.Single
Value that indicates the position of the light.

This property is read/write. 

Remarks

Exceptions

InvalidCallException

The property value is invalid.