|
NanoXLSX.Core 3.0.0-rc.3
|
Class to manage all styles at runtime, before writing XLSX files. The main purpose is deduplication and decoupling of styles from workbooks at runtime. More...
Public Member Functions | |
| Style | AddStyle (Style style) |
| Adds a style to the repository and returns the actual reference. | |
| void | FlushStyles () |
| Empties the static repository. | |
Properties | |
| static StyleRepository | Instance [get] |
| Gets the singleton instance of the repository. | |
| Dictionary< int, Style > | Styles [get] |
| Gets the currently managed styles of the repository. | |
Class to manage all styles at runtime, before writing XLSX files. The main purpose is deduplication and decoupling of styles from workbooks at runtime.
Definition at line 16 of file StyleRepository.cs.
Adds a style to the repository and returns the actual reference.
| style | Style to add |
Definition at line 59 of file StyleRepository.cs.
| void NanoXLSX.Styles.StyleRepository.FlushStyles | ( | ) |
Empties the static repository.
Definition at line 82 of file StyleRepository.cs.
|
staticget |
Gets the singleton instance of the repository.
Definition at line 25 of file StyleRepository.cs.
|
get |
Gets the currently managed styles of the repository.
Definition at line 44 of file StyleRepository.cs.