Share via


Light.Range Property (Microsoft.DirectX.Direct3D)

Retrieves or sets the distance beyond which the light has no effect.

Definition

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

Property Value

System.Single
Value that indicates the distance beyond which the light has no effect.

This property is read/write. 

Remarks

The maximum allowable value for this member is the square root of MaxValueLeave Site.

This member does not affect directional lights.

Exceptions

InvalidCallException

The property value is invalid.