Share via


Light.Type Property (Microsoft.DirectX.Direct3D)

Retrieves or sets the type of the light source.

Definition

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

Property Value

Microsoft.DirectX.Direct3D.LightType
A value that represents the light source's type.

This property is read/write. 

Remarks

This value is a member of the LightType enumerated type.

Exceptions

InvalidCallException

The property value is invalid.