Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 32 additions & 1 deletion src/MiniExcel/OpenXml/OpenXmlStyleOptions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,38 @@
using System.Drawing;

namespace MiniExcelLibs.OpenXml
{
public class OpenXmlStyleOptions
{
public OpenXmlHeaderStyle HeaderStyle { get; set; }
public bool WrapCellContents { get; set; }
public HorizontalCellAlignment HorizontalAlignment { get; set; }
public VerticalCellAlignment VerticalAlignment { get; set; }
}
}

public class OpenXmlHeaderStyle
{
/// <summary>
/// Whether to wrap the content of the header
/// </summary>
public bool WrapText { get; set; }

/// <summary>
/// The RGB background color in the filtered state
/// </summary>
public Color BackgroundColor { get; set; } = Color.FromArgb(0x284472C4);

/// <summary>
/// Horizontal alignment
/// </summary>
public HorizontalCellAlignment HorizontalAlignment { get; set; } = HorizontalCellAlignment.Left;

/// <summary>
/// Vertical alignment
/// </summary>
public VerticalCellAlignment VerticalAlignment { get; set; } = VerticalCellAlignment.Bottom;
}

public enum HorizontalCellAlignment { Left, Center, Right }
public enum VerticalCellAlignment { Bottom, Center, Top }
}
Loading
Loading