Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Core.v4.4 Assembly / Xceed.Chart.Core Namespace / Appearance Class / FillEffects Property
Example


In This Topic
    FillEffects Property
    In This Topic
    Gives you access to the data series of FillEffects.
    Syntax
    'Declaration
     
    <CategoryAttribute("Data Series")>
    <DescriptionAttribute("Data series containing fill effects.")>
    Public Property FillEffects As DataSeries
    'Usage
     
    Dim instance As Appearance
    Dim value As DataSeries
     
    instance.FillEffects = value
     
    value = instance.FillEffects
    [Category("Data Series")]
    [Description("Data series containing fill effects.")]
    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