Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Standard.v4.4 Assembly / Xceed.Chart.Standard Namespace / ImageFrame Class / BackgroundColor Property
Example


In This Topic
    BackgroundColor Property
    In This Topic
    The background color of the frame.
    Syntax
    'Declaration
     
    <CategoryAttribute("Appearance")>
    <DescriptionAttribute("The background color of the frame.")>
    <DefaultValueAttribute(System.Drawing.Color, "Control")>
    Public Property BackgroundColor As Color
    'Usage
     
    Dim instance As ImageFrame
    Dim value As Color
     
    instance.BackgroundColor = value
     
    value = instance.BackgroundColor
    [Category("Appearance")]
    [Description("The background color of the frame.")]
    [DefaultValue(System.Drawing.Color, "Control")]
    public Color BackgroundColor {get; set;}
    Remarks
    By default this color is set to KnownColor.Control, but you can alter it at any time. For example if you embed the chart in an ASPX page with White background you should set this color to Color.White.
    Example
    The following example changes the background color:
    Dim imageFrame As ImageFrame =  New ImageBackgroundFrame() 
    imageFrame.Type = ImageFrameType.Emboss
    imageFrame.BackgroundColor = Color.White
    ChartControl.Background.Frame = imageFrame
    ImageFrame imageFrame = new ImageBackgroundFrame();        
    imageFrame.Type = ImageFrameType.Emboss;
    imageFrame.BackgroundColor = Color.White;
    ChartControl.Background.Frame = imageFrame;
    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