NanoXLSX Library Documentation
StyleManager Class |
Class representing a style manager to maintain all styles and its components of a workbook
Inheritance Hierarchy
Namespace: NanoXLSX.Style
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 1.2.3.0 (1.2.3)
Syntax
C#
public class StyleManager
The StyleManager type exposes the following members.
Constructors
Name | Description | |
---|---|---|
StyleManager |
Default constructor
|
Methods
Name | Description | |
---|---|---|
AddStyle |
Adds a style component to the manager
| |
AddStyleComponent(AbstractStyle) |
Adds a style component to the manager
| |
AddStyleComponent(AbstractStyle, NullableInt32) |
Adds a style component to the manager with an ID
| |
CleanupStyleComponents |
Method to cleanup style components in the style manager
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetBorderByHash |
Gets a border by its hash
| |
GetBorders |
Gets all borders of the style manager
| |
GetBorderStyleNumber |
Gets the number of borders in the style manager
| |
GetCellXfByHash |
Gets a cellXf by its hash
| |
GetCellXfs |
Gets all cellXfs of the style manager
| |
GetCellXfStyleNumber |
Gets the number of cellXfs in the style manager
| |
GetComponentByHash |
Gets a component by its hash
| |
GetFillByHash |
Gets a fill by its hash
| |
GetFills |
Gets all fills of the style manager
| |
GetFillStyleNumber |
Gets the number of fills in the style manager
| |
GetFontByHash |
Gets a font by its hash
| |
GetFonts |
Gets all fonts of the style manager
| |
GetFontStyleNumber |
Gets the number of fonts in the style manager
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetNumberFormatByHash |
Gets a numberFormat by its hash
| |
GetNumberFormats |
Gets all numberFormats of the style manager
| |
GetNumberFormatStyleNumber |
Gets the number of numberFormats in the style manager
| |
GetStyleByHash |
Gets a style by its hash
| |
GetStyleByName |
Gets a style by its name
| |
GetStyleNumber |
Gets the number of styles in the style manager
| |
GetStyles |
Gets all styles of the style manager
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsUsedByStyle |
Checks whether a style component in the style manager is used by a style
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RemoveStyle |
Removes a style and all its components from the style manager
| |
Reorganize |
Method to reorganize / reorder a list of style components
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
BORDERPREFIX |
Prefix for the hash calculation of border styles
| |
CELLXFPREFIX |
Prefix for the hash calculation of cellXf styles
| |
FILLPREFIX |
Prefix for the hash calculation of fill styles
| |
FONTPREFIX |
Prefix for the hash calculation of font styles
| |
NUMBERFORMATPREFIX |
Prefix for the hash calculation of number format styles
| |
STYLEPREFIX |
Prefix for the hash calculation of styles
|
See Also