Skip to content

Commit d4c007c

Browse files
Merge branch 'dev'
2 parents 3f00828 + 3ca23b7 commit d4c007c

File tree

548 files changed

+1060
-836
lines changed

Some content is hidden

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

548 files changed

+1060
-836
lines changed

Changelog.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
# Change Log
22

3+
## v2.5.0
4+
5+
---
6+
Release Date: **02.07.2018**
7+
8+
- Added address types (no fixed rows and columns, fixed rows, fixed columns, fixed rows and columns; Useful in formulas)
9+
- Added new CellDirection Disabled, if the addresses of the cells are defined manually (AddNextCell will override the current cell in this case)
10+
- Altered Demo 3 to demonstrate disabling of automatic cell addressing
11+
- Extended Demo 1 to demonstrate the new address types
12+
- Minor, internal changes
13+
14+
315
## v2.4.0
416
---
517
Release Date: **07.06.2018**
618

719
- Added style appending (builder / method chaining)
820
- 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
21+
- Added a new constructor for Workbooks without file name to handle stream-only workbooks more logical
1022
- Added the functions HasCell, GetLastColumnNumber and GetLastRowNumber in the Worksheet class
1123
- Fixed a bug when overriding a worksheet name with sanitizing
1224
- Added new demo for the introduced style features

Demo/Program.cs

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private static void StreamDemo()
9595

9696

9797
/// <summary>
98-
/// This method shows the usage of AddNextCell with several data types and formulas
98+
/// This method shows the usage of AddNextCell with several data types and formulas. Furthermore, the several types of Addresses are demonstrated
9999
/// </summary>
100100
private static void Demo1()
101101
{
@@ -111,7 +111,21 @@ private static void Demo1()
111111
workbook.CurrentWorksheet.AddNextCellFormula("B1*22"); // Add cell A3 as formula (B1 times 22)
112112
workbook.CurrentWorksheet.AddNextCellFormula("ROUNDDOWN(A2,1)"); // Add cell B3 as formula (Floor A2 with one decimal place)
113113
workbook.CurrentWorksheet.AddNextCellFormula("PI()"); // Add cell C3 as formula (Pi = 3.14.... )
114-
workbook.Save(); // Save the workbook
114+
workbook.AddWorksheet("Addresses"); // Add new worksheet
115+
workbook.CurrentWorksheet.CurrentCellDirection = Worksheet.CellDirection.Disabled; // Disable automatic addressing
116+
workbook.CurrentWorksheet.AddCell("Default", 0,0); // Add a value
117+
Cell.Address address = new Cell.Address(1, 0, Cell.AddressType.Default); // Create Address with default behavior
118+
workbook.CurrentWorksheet.AddCell(address.ToString(), 1,0); // Add the string of the address
119+
workbook.CurrentWorksheet.AddCell("Fixed Column", 0, 1); // Add a value
120+
address = new Cell.Address(1, 1, Cell.AddressType.FixedColumn); // Create Address with fixed column
121+
workbook.CurrentWorksheet.AddCell(address.ToString(), 1, 1); // Add the string of the address
122+
workbook.CurrentWorksheet.AddCell("Fixed Row", 0, 2); // Add a value
123+
address = new Cell.Address(1, 2, Cell.AddressType.FixedRow); // Create Address with fixed row
124+
workbook.CurrentWorksheet.AddCell(address.ToString(), 1, 2); // Add the string of the address
125+
workbook.CurrentWorksheet.AddCell("Fixed Row and Column", 0, 3); // Add a value
126+
address = new Cell.Address(1, 3, Cell.AddressType.FixedRowAndColumn); // Create Address with fixed row and column
127+
workbook.CurrentWorksheet.AddCell(address.ToString(), 1, 3); // Add the string of the address
128+
workbook.Save(); // Save the workbook
115129
}
116130

117131
/// <summary>
@@ -158,10 +172,14 @@ private static void Demo3()
158172
workbook.CurrentWorksheet.AddNextCell("C"); // Add cell B3
159173
workbook.CurrentWorksheet.AddNextCell("D"); // Add cell B4
160174
workbook.CurrentWorksheet.RemoveCell("A2"); // Delete cell A2
161-
workbook.CurrentWorksheet.RemoveCell(1, 1); // Delete cell B2
175+
workbook.CurrentWorksheet.RemoveCell(1, 1); // Delete cell B2
162176
workbook.CurrentWorksheet.GoToNextRow(3); // Move 3 rows down
163177
object value = workbook.CurrentWorksheet.GetCell(1, 2).Value; // Gets the value of cell B3
164178
workbook.CurrentWorksheet.AddNextCell("Value of B3 is: " + value);
179+
workbook.CurrentWorksheet.CurrentCellDirection = Worksheet.CellDirection.Disabled; // Disable automatic cell addressing
180+
workbook.CurrentWorksheet.AddCell("Text A", 3, 0); // Add manually placed value
181+
workbook.CurrentWorksheet.AddCell("Text B", 4, 1); // Add manually placed value
182+
workbook.CurrentWorksheet.AddCell("Text C", 3, 2); // Add manually placed value
165183
workbook.Save(); // Save the workbook
166184
}
167185

Documentation/CodeDocumentation.shfbproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ If you want to compile the documentation project %28folder: Documentation%3b pro
6565

6666
&amp;lt%3bh3&amp;gt%3bAs DLL&amp;lt%3b/h3&amp;gt%3b
6767

68-
Simply place the PicoXLSX DLL into your .NET project and add a reference %28in VS or SharpDevelop%29 to it. Please keep in mind that the .NET version of your solution must match with the runtime version of the PicoXLSX DLL %28currently compiled with 4.5%29.
68+
Simply place the PicoXLSX DLL into your .NET project and add a reference to it. Please keep in mind that the .NET version of your solution must match with the runtime version of the PicoXLSX DLL %28currently compiled with 4.5%29.
6969
&amp;lt%3bh3&amp;gt%3bAs source files&amp;lt%3b/h3&amp;gt%3b
7070

7171
Place all .CS files from the PicoXLSX source folder into your project. You can place them into a sub-folder if you wish. The files contains definitions for workbooks, worksheets, cells, styles, meta-data, low level methods and exceptions.
@@ -103,7 +103,8 @@ Place all .CS files from the PicoXLSX source folder into your project. You can p
103103
<Argument Key="requestExampleUrl" Value="" />
104104
</TransformComponentArguments>
105105
<NamespaceSummaries>
106-
<NamespaceSummaryItem name="PicoXLSX" isDocumented="True" xmlns="" />
106+
<NamespaceSummaryItem name="PicoXLSX" isDocumented="True">The namespace PicoXLSX contains all classes of the library</NamespaceSummaryItem>
107+
<NamespaceSummaryItem name="(global)" isDocumented="False" />
107108
</NamespaceSummaries>
108109
<RootNamespaceTitle>PicoXLSX</RootNamespaceTitle>
109110
</PropertyGroup>

Executable/Debug/PicoXLSX.XML

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

Executable/Debug/PicoXLSX.dll

512 Bytes
Binary file not shown.

Executable/Documentation.chm

2.12 KB
Binary file not shown.

Executable/Release/PicoXLSX.dll

512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)