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


In This Topic
    Type Property (FillEffect)
    In This Topic
    Controls the type of the fill effect. The possible values are SolidColor, Gradient, Image, Pattern or AdvancedGradient.
    Syntax
    'Declaration
     
    Public Property Type As FillEffectType
    'Usage
     
    Dim instance As FillEffect
    Dim value As FillEffectType
     
    instance.Type = value
     
    value = instance.Type
    public FillEffectType Type {get; set;}
    Remarks
    When you change the value of this property the control will free the texture associated with the fill effect if the type was gradient, image, pattern or advanced gradient and no other fill effects refer to the same texture. This is why it is recommended to avoid multiple changes to the fill effect Type property if you want to increase performance.
    Example
    The following example changes the color of the background.
    ChartControl.Background.FillEffect.Type = FillEffectType.Color
    ChartControl.Background.FillEffect.Color = Color.White
    ChartControl.Background.FillEffect.Type = FillEffectType.Color;
    ChartControl.Background.FillEffect.Color = 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