Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Core.v4.4 Assembly / Xceed.Chart.Core Namespace / SurfaceSeriesBase Class / AutomaticPalette Property
Example


In This Topic
    AutomaticPalette Property
    In This Topic
    When set to true the component uses automatically generated surface palette. When set to False the component uses a custom defined palette (the Palette property gives access to the custom palette).
    Syntax
    'Declaration
     
    <CategoryAttribute("Palette")>
    <DescriptionAttribute("Switches between automatic and custom palette mode.")>
    <DefaultValueAttribute(True)>
    Public Property AutomaticPalette As Boolean
    'Usage
     
    Dim instance As SurfaceSeriesBase
    Dim value As Boolean
     
    instance.AutomaticPalette = value
     
    value = instance.AutomaticPalette
    [Category("Palette")]
    [Description("Switches between automatic and custom palette mode.")]
    [DefaultValue(true)]
    public bool AutomaticPalette {get; set;}
    Remarks
    By default the automatic palette is enabled.
    Example
    The following code deactivates the automatic palette and activates the custom palette:
    surface.AutomaticPalette = False
    surface.AutomaticPalette = false;
    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