This documentation is archived and is not being maintained.

DiffuseMaterial.AmbientColor Property

Gets or sets a color that represents the ambient color emitted by the Material.

Namespace: System.Windows.Media.Media3D
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace:

public Color AmbientColor { get; set; }
/** @property */
public Color get_AmbientColor ()

/** @property */
public void set_AmbientColor (Color value)

public function get AmbientColor () : Color

public function set AmbientColor (value : Color)

    <Color .../>
<object AmbientColor="Color" .../>

Property Value

The color of the ambient light emitted by the 3D object. The default value is #FFFFFF.

An ambient light is lighting not attributable to the direct rays from a specific light source. In the physical world, ambient light comes from the reflection of light from surfaces in the environment. Without ambient light, objects in shadow would be completely black.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0