Class
ExcelStyleDefinition
OfficeIMO.Excel
Declares a complete cell style based on the workbook's Normal style, without requiring a source cell. Definitions are copied when a named style or tabular export is created.
Inheritance
- object
- ExcelStyleDefinition
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Property ExcelWriterOptions.Styles
Accepted by parameters 1
Constructors
public ExcelStyleDefinition() #Inherited Methods
Properties
public ExcelUnderlineStyle? Underline { get; set; } #Optional underline treatment.
public string? FontFamily { get; set; } #Optional font family; null keeps the Normal font.
public OfficeLength? FontSize { get; set; } #Optional positive physical font size; null keeps the Normal font size.
public OfficeColor? BackgroundColor { get; set; } #Optional solid background color.
public ExcelHorizontalAlignment? HorizontalAlignment { get; set; } #Optional horizontal alignment.
public ExcelVerticalAlignment? VerticalAlignment { get; set; } #Optional vertical alignment.
public string? NumberFormat { get; set; } #Optional Excel number-format code. Null allows tabular writers to select a temporal format for dates and durations while preserving the other declared properties.