Class Styles
Contains style information for a workbook. In general, you should not use this class directly. Instead, you should set properties on cells and ranges.
Inheritance
System.Object
Styles
Assembly: DRIT.Spreadsheet.dll
Syntax
public sealed class Styles : object
Constructors
Styles()
Declaration
Styles(Workbook)
Declaration
public Styles(Workbook workbook)
Parameters
Fields
DefaultFontStyleName
Declaration
public const string DefaultFontStyleName = null
Field Value
Type |
Description |
System.String |
|
Properties
IndexedColors
Declaration
public List<SpreadsheetColor> IndexedColors { get; }
Property Value
TableStyles
Declaration
public TableStyleCollection TableStyles { get; }
Property Value
ThemeColors
Declaration
public List<SpreadsheetColor> ThemeColors { get; }
Property Value
Methods
AddBuiltInStyle(StyleSheetCellStyle)
Declaration
public void AddBuiltInStyle(StyleSheetCellStyle cellStyle)
Parameters
AddCustomStyle(CellStyle)
Declaration
public void AddCustomStyle(CellStyle cellStyle)
Parameters
GetColorIndex(SpreadsheetColor, Int32)
Declaration
public int GetColorIndex(SpreadsheetColor color, int nullValue)
Parameters
Returns
Type |
Description |
System.Int32 |
|
GetCustomStyle(String)
Declaration
public StyleSheetCellStyle GetCustomStyle(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
GetIndexedColorAsColor(Int32)
Declaration
public SpreadsheetColor GetIndexedColorAsColor(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
GetStyle(String)
Declaration
public StyleSheetCellStyle GetStyle(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns