C1.WPF.Excel Namespace > XLStyle Class : ForeColor Property |
'Declaration
Public Property ForeColor As System.Windows.Media.Color
public System.Windows.Media.Color ForeColor {get; set;}
Set the ForeColor property to Color.Transparent to suppress this style element and use the default foreground color instead (black).
All colors on the C1XLBook are mapped to a palette. This means that if you assign colors to styles, save the book, and then load it back, you probably won't get exactly the same colors used when the book was created. You will get a fairly close approximation though.
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