Skip to content

Commit 3f00828

Browse files
Update v2.4.0
2 parents 6655b4a + a4647e0 commit 3f00828

File tree

553 files changed

+1487
-849
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

553 files changed

+1487
-849
lines changed

Changelog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Change Log
22

3+
## v2.4.0
4+
---
5+
Release Date: **07.06.2018**
6+
7+
- Added style appending (builder / method chaining)
8+
- Added new basic styles ColorizedText, ColorizedBackground and Font as functions
9+
- Added a new constructor for Workbooks without file name to handle stream-only workbooks more logiccal
10+
- Added the functions HasCell, GetLastColumnNumber and GetLastRowNumber in the Worksheet class
11+
- Fixed a bug when overriding a worksheet name with sanitizing
12+
- Added new demo for the introduced style features
13+
- Internal optimizations and fixes
14+
15+
316
## v2.3.2
417
---
518
Release Date: **30.05.2018**

Demo/Program.cs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class Program
2121
/// <param name="args">Not used</param>
2222
static void Main(string[] args)
2323
{
24+
2425
BasicDemo();
2526
ShortenerDemo();
2627
StreamDemo();
@@ -33,6 +34,7 @@ static void Main(string[] args)
3334
Demo7();
3435
Demo8();
3536
Demo9();
37+
Demo10();
3638

3739
/* ### PERFORMANCE TESTS ### */
3840
// # Use tests in this section to test the performance of PicoXLSX
@@ -376,5 +378,30 @@ private static void Demo9()
376378
workbook.Save(); // Save the workbook
377379
}
378380

381+
/// <summary>
382+
/// This demo shows the usage of style appending
383+
/// </summary>
384+
private static void Demo10()
385+
{
386+
Workbook wb = new Workbook("demo10.xlsx", "styleAppending"); // Create a new workbook
387+
388+
Style style = new Style(); // Create a new style
389+
style.Append(Style.BasicStyles.Bold); // Append a basic style (bold)
390+
style.Append(Style.BasicStyles.Underline); // Append a basic style (underline)
391+
style.Append(Style.BasicStyles.Font("Arial Black", 20)); // Append a basic style (custom font)
392+
393+
wb.WS.Value("THIS IS A TEST", style); // Add text and the appended style
394+
wb.WS.Down(); // Go to a new row
395+
396+
Style chainedStyle = new Style() // Create a new style...
397+
.Append(Style.BasicStyles.Underline) // ... and append another part (chaining underline)
398+
.Append(Style.BasicStyles.ColorizedText("FF00FF")) // ... and append another part (chaining colorized text)
399+
.Append(Style.BasicStyles.ColorizedBackground("AAFFAA")); // ... and append another part (chaining colorized background)
400+
401+
wb.WS.Value("Another test", chainedStyle); // Add text and the appended style
402+
403+
wb.Save(); // Save the workbook
404+
}
405+
379406
}
380407
}

Executable/Debug/PicoXLSX.XML

Lines changed: 92 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Executable/Debug/PicoXLSX.dll

3 KB
Binary file not shown.

Executable/Documentation.chm

18.5 KB
Binary file not shown.

Executable/Release/PicoXLSX.dll

3 KB
Binary file not shown.

0 commit comments

Comments
 (0)