Nevron .NET Vision
Nevron.GraphicsCore Namespace / NColorFillStyle Class / Color Property
Example


In This Topic
    Color Property (NColorFillStyle)
    In This Topic
    The color of the filling.
    Syntax
    'Declaration
     
    
    <System.Xml.Serialization.XmlIgnoreAttribute()>
    Public Property Color As System.Drawing.Color
    'Usage
     
    
    Dim instance As NColorFillStyle
    Dim value As System.Drawing.Color
     
    instance.Color = value
     
    value = instance.Color
    [System.Xml.Serialization.XmlIgnore()]
    public System.Drawing.Color Color {get; set;}
    Remarks
    This property also represents the Diffuse color of the material used to render the fill style when lighting is turned on. This ensures that the color of the fill style will appear the same. When you set the property you also modify the Ambient color of the material. For more information see the topics under the Lighting book in the Users Guide.
    Example
    The following example changes the color of the background.
    NChartControl.Background.FillEffect.Type = FillEffectType.Color
    NChartControl.Background.FillEffect.Color = Color.White
    NChartControl.Background.FillEffect.Type = FillEffectType.Color;
    NChartControl.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