Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelStyleDefinition

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Source revision
139dd4412592 with working tree changes
Modifiers
sealed

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

Accepted by parameters 1

Constructors

public ExcelStyleDefinition() #

Properties

public bool Bold { get; set; } #

Displays text in bold.

public bool Italic { get; set; } #

Displays text in italics.

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? Color { get; set; } #

Optional font color.

public OfficeColor? BackgroundColor { get; set; } #

Optional solid background color.

public bool WrapText { get; set; } #

Wraps text within the cell.

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.