Skip to content

Commit b8e5fe7

Browse files
Release v3.0.0
1 parent ded441d commit b8e5fe7

9 files changed

Lines changed: 49 additions & 32 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"packageName": "NanoXLSX",
3-
"version": "3.0.0-rc.9",
3+
"version": "3.0.0",
44
"description": "NanoXLSX is a library to generate and read Microsoft Excel files (XLSX) in an easy and native way. This package is the meta package of NanoXLSX and should be used in most cases as dependency in your project."
55
}

Docs.IndexGenerator/Output/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h1>
2222

2323
<hr>
2424

25-
<h2>Meta Package v3.0.0-rc.9</h2>
25+
<h2>Meta Package v3.0.0</h2>
2626
<section>
2727
<ul class="list">
2828
<li><strong>NanoXLSX</strong> — This package is the meta package of NanoXLSX and should be used in most cases as dependency in your project.</li>
@@ -31,7 +31,7 @@ <h2>Meta Package v3.0.0-rc.9</h2>
3131
<p>There is no documentation for the meta package. Please see the section <b>Dependency Package Documentation</b> for the complete API documentation.</p>
3232
</section>
3333

34-
<p class="version">Version 3.0.0-rc.9</p>
34+
<p class="version">Version 3.0.0</p>
3535
</header>
3636

3737
<hr>

NanoXLSX.Core/Colors/Color.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ public static implicit operator Color(IndexedColor.Value colorIndex)
358358
}
359359

360360
/// <summary>
361-
/// String representation od a Color instance
361+
/// String representation of a Color instance
362362
/// </summary>
363363
/// <returns>String value</returns>
364364
public override string ToString()
@@ -422,7 +422,7 @@ public override int GetHashCode()
422422
/// Compares two instances for sorting purpose
423423
/// </summary>
424424
/// <param name="obj">Object to compare</param>
425-
/// <returns></returns>
425+
/// <returns>Negative integer, zero, or positive integer as this object is less than, equal to, or greater than the specified object</returns>
426426
/// <exception cref="StyleException">Throws a StyleException if the compared object is not from the type Color</exception>
427427
public int CompareTo(object obj)
428428
{

NanoXLSX.Core/Colors/IndexedColor.cs

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -243,27 +243,6 @@ public SrgbColor GetSrgbColor()
243243
return new SrgbColor(GetArgbValue());
244244
}
245245

246-
247-
/// <summary>
248-
/// Determines whether the specified object is equal to the current object
249-
/// </summary>
250-
/// <param name="obj">Other object to compare</param>
251-
/// <returns>True if both objects are equal</returns>
252-
public override bool Equals(object obj)
253-
{
254-
return obj is IndexedColor color &&
255-
ColorValue == color.ColorValue;
256-
}
257-
258-
/// <summary>
259-
/// Gets the hash code of the instance
260-
/// </summary>
261-
/// <returns>Hash code</returns>
262-
public override int GetHashCode()
263-
{
264-
return 800285905 + ColorValue.GetHashCode();
265-
}
266-
267246
/// <summary>
268247
/// Maps the indexed color value to its ARGB hex code representation
269248
/// </summary>
@@ -441,6 +420,26 @@ public static string GetArgbValue(Value indexedValue)
441420
}
442421
}
443422

423+
/// <summary>
424+
/// Determines whether the specified object is equal to the current object
425+
/// </summary>
426+
/// <param name="obj">Other object to compare</param>
427+
/// <returns>True if both objects are equal</returns>
428+
public override bool Equals(object obj)
429+
{
430+
return obj is IndexedColor color &&
431+
ColorValue == color.ColorValue;
432+
}
433+
434+
/// <summary>
435+
/// Gets the hash code of the instance
436+
/// </summary>
437+
/// <returns>Hash code</returns>
438+
public override int GetHashCode()
439+
{
440+
return 800285905 + ColorValue.GetHashCode();
441+
}
442+
444443
/// <summary>
445444
/// Implicit conversion from Value to IndexedColor
446445
/// </summary>

NanoXLSX.Core/Colors/SrgbColor.cs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ public SrgbColor()
6060
}
6161

6262
/// <summary>
63-
/// Constructor with parameters
63+
/// Constructor with an RGB or ARGB hex string
6464
/// </summary>
65-
/// <param name="rgb">RGB/ARGB value</param>
65+
/// <param name="rgb"RGB (6-char) or ARGB (8-char) hex string (case-insensitive)</param>
6666
public SrgbColor(string rgb) : this()
6767
{
6868
ColorValue = rgb;
@@ -72,7 +72,7 @@ public SrgbColor(string rgb) : this()
7272
/// Determines whether the specified object is equal to the current object
7373
/// </summary>
7474
/// <param name="obj">Other object to compare</param>
75-
/// <returns></returns>
75+
/// <returns>True if the specified object is equal to the current object; otherwise, false</returns>
7676
public override bool Equals(object obj)
7777
{
7878
return obj is SrgbColor color &&
@@ -87,5 +87,14 @@ public override int GetHashCode()
8787
{
8888
return 800285905 + EqualityComparer<string>.Default.GetHashCode(ColorValue);
8989
}
90+
91+
/// <summary>
92+
/// Returns a string that represents the current object, which is the color value
93+
/// </summary>
94+
/// <returns>String value</returns>
95+
public override string ToString()
96+
{
97+
return colorValue;
98+
}
9099
}
91100
}

NanoXLSX.Core/Colors/ThemeColor.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,14 @@ public override int GetHashCode()
8484
{
8585
return 800285905 + ColorValue.GetHashCode();
8686
}
87+
88+
/// <summary>
89+
/// Gets the string representation of the theme color, which is the numeric index of the color scheme element
90+
/// </summary>
91+
/// <returns>String value</returns>
92+
public override string ToString()
93+
{
94+
return StringValue;
95+
}
8796
}
8897
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
PROJECT_NUMBER = 3.0.0-rc.7
1+
PROJECT_NUMBER = 3.0.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
PROJECT_NUMBER = 3.0.0-rc.6
1+
PROJECT_NUMBER = 3.0.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
PROJECT_NUMBER = 3.0.0-rc.6
1+
PROJECT_NUMBER = 3.0.0

0 commit comments

Comments
 (0)