Xceed Workbooks for .NET v1.4 Documentation
ThemeColor Class
Members  Example 


Xceed.Workbooks.NET Assembly > Xceed.Workbooks.NET Namespace : ThemeColor Class
Represents a Theme's Color.
Syntax
'Declaration

 

Public Class ThemeColor 

   Implements IReadonlyThemeColor 
'Usage

 

Dim instance As ThemeColor
public class ThemeColor : IReadonlyThemeColor  
Remarks
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

Reference

ThemeColor Members
Xceed.Workbooks.NET Namespace