Partager via


Device.Material Property (Microsoft.DirectX.Direct3D)

Retrieves or sets the current material properties for the device.

Definition

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

Property Value

Microsoft.DirectX.Direct3D.Material
A Material object that represents the current material properties or the material properties to set.

This property is read/write. 

Remarks

Exceptions

InvalidCallException

Occurs if properties of the Material object are invalid.