Xceed Chart for WinForms v4.4 Documentation
Diffuse Property (FillEffect)
Example 


Xceed.Chart.Standard.v4.4 Assembly > Xceed.Chart.Standard Namespace > FillEffect Class : Diffuse Property
The diffuse color of the FillEffectBase.
Syntax
'Declaration
 
Public Property Diffuse As Color
'Usage
 
Dim instance As FillEffect
Dim value As Color
 
instance.Diffuse = value
 
value = instance.Diffuse
public Color Diffuse {get; set;}
Remarks
The get method of this property will always return the same value as the Color property. Setting the Diffuse color property however does not modify the Ambient component of the material attached to the fill effect. This allows you to fine tune the material properties using the Ambient, Diffuse, Specular and Shininess properties of the FillEffectBase.
Example
The following example sets a white color to the left chart wall, but modifies the diffuse material color additionally because it was modified by the SetSolidColor function. As a result the wall will appear darker when you turn on lighting.
Dim chart As Chart = CType((ChartControl.Charts(0)), Chart)
Dim fillEffect As FillEffectBase =  chart.Wall(ChartWallType.Left).FillEffect 
fillEffect.SetSolidColor(Color.White)
fillEffect.Diffuse = Color.FromArgb(125, 125, 125)
Chart chart = (Chart)(ChartControl.Charts[0]);
FillEffectBase fillEffect = chart.Wall(ChartWallType.Left).FillEffect;
fillEffect.SetSolidColor(Color.White);
fillEffect.Diffuse = Color.FromArgb(125, 125, 125);
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FillEffect Class
FillEffect Members