Initial commit of the ClosedXML library
Establishes the foundational structure, core Excel functionality, and tooling. - Implements base components for cells, ranges, columns, and rows. - Integrates a custom calculation engine with a wide range of Excel functions. - Adds comprehensive support for styling, conditional formatting, data validation, comments, pictures, and charts. - Configures build setup, project metadata (NuGet), and developer guidelines. - Includes editor and Git attributes for consistent code style and line endings.
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
using ClosedXML_Examples.Styles;
|
||||
using System.IO;
|
||||
|
||||
namespace ClosedXML_Examples
|
||||
{
|
||||
public class StyleExamples
|
||||
{
|
||||
#region Variables
|
||||
|
||||
// Public
|
||||
|
||||
// Private
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
// Public
|
||||
|
||||
// Private
|
||||
|
||||
// Override
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
// Public
|
||||
public StyleExamples()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Private
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Events
|
||||
|
||||
// Public
|
||||
|
||||
// Private
|
||||
|
||||
// Override
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
|
||||
// Public
|
||||
public void Create()
|
||||
{
|
||||
var path = Program.BaseCreatedDirectory;
|
||||
new StyleFont().Create(Path.Combine(path, "styleFont.xlsx"));
|
||||
new StyleFill().Create(Path.Combine(path, "styleFill.xlsx"));
|
||||
new StyleBorder().Create(Path.Combine(path, "styleBorder.xlsx"));
|
||||
new StyleAlignment().Create(Path.Combine(path, "styleAlignment.xlsx"));
|
||||
new StyleNumberFormat().Create(Path.Combine(path, "styleNumberFormat.xlsx"));
|
||||
new StyleIncludeQuotePrefix().Create(Path.Combine(path, "styleIncludeQuotePrefix.xlsx"));
|
||||
}
|
||||
|
||||
// Private
|
||||
|
||||
// Override
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user