Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Standard.v4.4 Assembly / Xceed.Chart.Standard Namespace / FillEffect Class / Ambient Property
Example


In This Topic
    Ambient Property (FillEffect)
    In This Topic
    The ambient color of the FillEffectBase.
    Syntax
    'Declaration
     
    Public Property Ambient As Color
    'Usage
     
    Dim instance As FillEffect
    Dim value As Color
     
    instance.Ambient = value
     
    value = instance.Ambient
    public Color Ambient {get; set;}
    Remarks
    The ambient color of the material attached to the fill effect. Note that the SetSolidColor function will always synchronize the value of the Ambient color with the Diffuse color of the material.
    Example
    The following example sets a grey color to the left chart wall but modifies the ambient material color additionally because it was modified by the SetSolidColor function. As a result the wall will appear brighter 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.Gray)
    fillEffect.Ambient = Color.White
    Chart chart = (Chart)(ChartControl.Charts[0]);
    FillEffectBase fillEffect = chart.Wall(ChartWallType.Left).FillEffect;
    fillEffect.SetSolidColor(Color.Gray);
    fillEffect.Ambient = Color.White;
    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