Xceed Workbooks for .NET v3.0 Documentation
Xceed.Workbooks.NET Assembly / Xceed.Workbooks.NET Namespace / ConditionalFormattingColorScale Class
Members Example


In This Topic
    ConditionalFormattingColorScale Class
    In This Topic
    Represents the Color Scales ConditionalFormatting, which color Cells using a specific color scale.
    Syntax
    'Declaration
     
    
    Public Class ConditionalFormattingColorScale 
       Inherits ConditionalFormatting
    'Usage
     
    
    Dim instance As ConditionalFormattingColorScale
    public class ConditionalFormattingColorScale : ConditionalFormatting 
    Remarks
    The Cells will be colored based on their value, each value corresponding to a degree in the color scale.
    Example
    ConditionalFormatting cf = ConditionalFormatting.CreateColorScale( ColorScalePreset.BlueWhiteRed ).AddAreas( "A1:A10" );
    
    doc.Worksheets[ 0 ].ConditionalFormattings.Add( cf  );
    Inheritance Hierarchy

    System.Object
       Xceed.Workbooks.NET.ConditionalFormatting
          Xceed.Workbooks.NET.ConditionalFormattingColorScale

    Requirements

    Target Platforms: Windows 11, Windows 10, 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