Xceed Chart for WinForms v4.4 Documentation
BackgroundColor Property (ImageFrame)
Example 


Xceed.Chart.Standard.v4.4 Assembly > Xceed.Chart.Standard Namespace > ImageFrame Class : BackgroundColor Property
The background color of the frame.
Syntax
'Declaration
 
<DescriptionAttribute("The background color of the frame.")>
<DefaultValueAttribute()>
<CategoryAttribute("Appearance")>
Public Property BackgroundColor As Color
'Usage
 
Dim instance As ImageFrame
Dim value As Color
 
instance.BackgroundColor = value
 
value = instance.BackgroundColor
[Description("The background color of the frame.")]
[DefaultValue()]
[Category("Appearance")]
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

Reference

ImageFrame Class
ImageFrame Members