A collection of workbook styles, or complex formats which can be easily applied to cells in Microsoft Excel.
Inheritance
object
Implements
- ICollection<WorkbookStyle>
- IEnumerable<WorkbookStyle>
- IEnumerable
Properties
Section titled "Properties"Count
Section titled "Count"Gets the number of styles in the collection.
public int Count { get; } this[int]
Section titled "this[int]"Gets the style at the specified index.
public WorkbookStyle this[int index] { get; } this[string]
Section titled "this[string]"Gets the style with the specified name.
public WorkbookStyle this[string name] { get; } NormalStyle
Section titled "NormalStyle"Gets the default style for the workbook.
public WorkbookStyle NormalStyle { get; } Methods
Section titled "Methods"AddUserDefinedStyle(IWorksheetCellFormat, string)
Section titled "AddUserDefinedStyle(IWorksheetCellFormat, string)"Adds new user defined style to the workbook.
public WorkbookStyle AddUserDefinedStyle(IWorksheetCellFormat styleFormat, string name) Parameters
- styleFormat:
IWorksheetCellFormat - name:
string
Returns any
AddUserDefinedStyle(string)
Section titled "AddUserDefinedStyle(string)"Adds new user defined style to the workbook.
public WorkbookStyle AddUserDefinedStyle(string name) Parameters
- name:
string
Returns any
Clear()
Section titled "Clear()"Clears all styles, other than the Normal style, from the collection.
public void Clear() Returns any
Contains(WorkbookStyle)
Section titled "Contains(WorkbookStyle)"Determines whether a style is in the collection.
public bool Contains(WorkbookStyle style) Parameters
- style:
WorkbookStyle
Returns any
Remove(WorkbookStyle)
Section titled "Remove(WorkbookStyle)"Removes the specified style from the collection.
public bool Remove(WorkbookStyle style) Parameters
- style:
WorkbookStyle
Returns any
RemoveAt(int)
Section titled "RemoveAt(int)"Removes the style at the specified index from the collection.
public void RemoveAt(int index) Parameters
- index:
int
Returns any
Reset()
Section titled "Reset()"Resets the collection to its original state by clearing all styles and adding in preset built in styles.
public void Reset()