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.
75 lines
1.3 KiB
C#
75 lines
1.3 KiB
C#
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
|
|
}
|
|
}
|