Nevron .NET Vision
Nevron.GraphicsCore Namespace / NImageFrameStyle Class / BackgroundColor Property
Example


In This Topic
    BackgroundColor Property (NImageFrameStyle)
    In This Topic
    The background color of the frame.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("Appearance")>
    <System.ComponentModel.DescriptionAttribute("The background color of the frame.")>
    <System.ComponentModel.DefaultValueAttribute(System.Drawing.Color, "Control")>
    <System.Xml.Serialization.XmlIgnoreAttribute()>
    Public Property BackgroundColor As System.Drawing.Color
    'Usage
     
    
    Dim instance As NImageFrameStyle
    Dim value As System.Drawing.Color
     
    instance.BackgroundColor = value
     
    value = instance.BackgroundColor
    [System.ComponentModel.Category("Appearance")]
    [System.ComponentModel.Description("The background color of the frame.")]
    [System.ComponentModel.DefaultValue(System.Drawing.Color, "Control")]
    [System.Xml.Serialization.XmlIgnore()]
    public System.Drawing.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 NImageFrame =  New NImageBackgroundFrame() 
    imageFrame.Type = ImageFrameType.Emboss
    imageFrame.BackgroundColor = Color.White
    NChartControl.Background.Frame = imageFrame
    NImageFrame imageFrame = new NImageBackgroundFrame();				
    imageFrame.Type = ImageFrameType.Emboss;
    imageFrame.BackgroundColor = Color.White;
    NChartControl.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