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


In This Topic
    ThemeColor Class
    In This Topic
    Represents the colors associated with a Theme.
    Syntax
    'Declaration
     
    
    Public Class ThemeColor 
       Implements IReadonlyThemeColor 
    'Usage
     
    
    Dim instance As ThemeColor
    public class ThemeColor : IReadonlyThemeColor  
    Remarks
    This class derives from IReadonlyThemeColor.
    Example
    var workbook = Workbook.Create( "test.xlsx" )
    
     // Get the first worksheet. A workbook contains at least 1 worksheet.
     var cellWorksheet = workbook.Worksheets[ 0 ];
    
    cellWorksheet.Cells[ "C18" ].Value = "Using theme color and tint";
    cellWorksheet.Cells[ "C18" ].Style.Font = new Font() { ThemeColor = new ThemeColor( ThemeColorType.Accent2, -0.5d ) };
    
    workbook.Save();
    Inheritance Hierarchy

    System.Object
       Xceed.Workbooks.NET.ThemeColor

    Public Constructors
     NameDescription
    Public ConstructorCreates a ThemeColor by specifying its Type and possible Tint.  
    Top
    Public Properties
     NameDescription
    Public PropertyGets or sets the ThemeColor's tint.  
    Public PropertyGets or sets the ThemeColorType.  
    Top
    Public Methods
     NameDescription
    Public MethodEvaluates if the current ThemeColor is the same as a given ThemeColor.  
    Public MethodServes as the default hash function.  
    Top
    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