You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Changelog.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,29 @@
1
1
# Change Log
2
2
3
+
## v3.0.0-rc.5
4
+
5
+
---
6
+
Release Date: **22.12.2025**
7
+
8
+
- Added explicit operator for Address to convert from string to Address (string can be cast to address explicitly)
9
+
- Added implicit operator for Range to convert from string to Range (string can be cast to range implicitly)
10
+
- Introduced new class Color to handle colors in the Fill class. This class contains several color representations (implementations of the IColor interface):
11
+
- IndexedColor (representing indexed colors form index 0 to 65)
12
+
- SrgbColor (RGB or ARGB value)
13
+
- ThemeColor (Color, defined by theme elements)
14
+
- SystemColor (Color, defined by system colors)
15
+
- AutoColor (automatic color, no value / dummy class)
16
+
- Re-implementation of the Fill class to use the new Color class for color representation of the foreground and background colors (indexed property removed)
17
+
- Added implicit operator for Fill to create a fill color by a string (RGB or ARGB value)
18
+
- Added implicit operator for Fill to create a fill color by an integer (indexed color value)
19
+
- Changed internal handling of text cell values
20
+
- Added static methods `bool Comparators.IsZero(double)` and `bool Comparators.IsZero(float)
21
+
- Added `double ParserUtils.ParseDouble(string)` to parse doubles with invariant culture
22
+
- Added `void Validators.ValidateGenericColor(string, bool = false)` to check generic color strings (RGB or ARGB)
23
+
- Added test cases
24
+
25
+
Note: Implicit address conversion from string to Address was not implemented, to avoid potential problems when comparing addresses (invalid strings could raise exceptions instead of returning false in the equals method). This does not apply to the Range struct
Copy file name to clipboardExpand all lines: MigrationGuide.md
+22-3Lines changed: 22 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ The following guide lists all necessary changes, as well as changed behaviors of
22
22
- The method `Workbook.AddStyle(Style)` was completely removed, after marked as obsolete in version 2.x. Styles should be added directly to cells or ranges.
23
23
- The method `Workbook.AddStyleComponent(Style, AbstractStyle)` was completely removed, after marked as obsolete in version 2.x. Styles should be modified directly on cells, e.g. `workbook.CurrentWorksheet.Cells["A1"].CellStyle.CurrentFont.Bold = true;` or `workbook.CurrentWorksheet.Cells["A1"].CellStyle.Append(fontStyle)`.
24
24
- The methods `Workbook.RemoveStyle(Style)`, `Workbook.RemoveStyle(Style, bool)`, `Workbook.RemoveStyle(string)` and `Workbook.RemoveStyle(string, bool)` were completely removed, after marked as obsolete in version 2.x. Styles should be removed directly from cells (e.g. `workbook.CurrentWorksheet.Cells["A1"].RemoveStyle()`.
25
-
25
+
- The method `Workbook.GetMruColors()` returns now a `IReadOnlyList<Color>` (was string). The new Color class (namespace `NanoXLSX.Colors`) can represent an RGB, ARGB, system, theme or indexed color. See the Color class documentation for more details.
Fill was completely overhauled in version 3.0.0, to support more flexible color definitions, like (A)RGB, indexed colors, theme or system colors, as well as tint.
234
+
233
235
- The public constant values of the `Fill` class were renamed, according to the following overview:
- The static method `Fill.ValidateColr(string,bool, bool)` was moved to the utils class `Validators.ValidateColr(string,bool, bool)` in namespace `NanoXLSX.Utils`. The class has to be changed in the code, but the method signature remains unchanged.
263
+
- The property `Fill.BackgroundColor` was changed from type `string` to the new `Color` class (namespace `NanoXLSX.Colors`). The new Color class can represent an RGB, ARGB, system, theme or indexed color. See the Color class documentation for more details.
264
+
- The property `Fill.ForegroundColor` was changed from type `string` to the new `Color` class (namespace `NanoXLSX.Colors`). The new Color class can represent an RGB, ARGB, system, theme or indexed color. See the Color class documentation for more details.
265
+
- The property `IndexedColor` was removed and is now part of the new `Color` class, applied to `BackgroundColor` and `ForegroundColor`. In the `Color` class, there is a property `IndexedColor` that holds an object of the type `IndexedColor` (namespace `NanoXLSX.Themes`). The original `int` value has to be replaced by one of the available enum values in the class `IndexedColor`. Usage example:
0 commit comments