Xceed Chart for WinForms v4.4 Documentation
FillEffects Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > Appearance Class : FillEffects Property
Gives you access to the data series of FillEffects.
Syntax
'Declaration
 
<DescriptionAttribute("Data series containing fill effects.")>
<CategoryAttribute("Data Series")>
Public Property FillEffects As DataSeries
'Usage
 
Dim instance As Appearance
Dim value As DataSeries
 
instance.FillEffects = value
 
value = instance.FillEffects
[Description("Data series containing fill effects.")]
[Category("Data Series")]
public DataSeries FillEffects {get; set;}
Remarks
If the FillMode property is set to AppearanceFillMode.DataPoints, the component will iterate through the fill effects contained in this data series.
Example
The following code adds red, green and blue solid color fill effects in the FillEffects data series, and instructs the bar series associated with it to cycle through it.

Thus the first bar will be displayed in red, the second in green, the third in blue, the fourth in red again and so on.

bar.Appearance.FillMode = AppearanceFillMode.DataPoints
            bar.Appearance.FillEffects.Clear()
            
            Dim fe As FillEffect
            fe = New FillEffect(Color.Red)
            bar.Appearance.FillEffects.Add(fe)
            
            fe = New FillEffect(Color.Green)
            bar.Appearance.FillEffects.Add(fe)
            
            fe = New FillEffect(Color.Blue)
            bar.Appearance.FillEffects.Add(fe)
bar.Appearance.FillMode = AppearanceFillMode.DataPoints;
bar.Appearance.FillEffects.Clear();

FillEffect fe;
fe = new FillEffect(Color.Red);
bar.Appearance.FillEffects.Add(fe);

fe = new FillEffect(Color.Green);
bar.Appearance.FillEffects.Add(fe);

fe = new FillEffect(Color.Blue);
bar.Appearance.FillEffects.Add(fe);
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

Appearance Class
Appearance Members