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

    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