Click or drag to resize

CellStyle Class

Includes parameters for presenting cell information.
Inheritance Hierarchy
SystemObject
  SautinSoft.ExcelCellStyle

Namespace: SautinSoft.Excel
Assembly: SautinSoft.Excel (in SautinSoft.Excel.dll) Version: 2025.2.6
Syntax
public sealed class CellStyle

The CellStyle type exposes the following members.

Constructors
 NameDescription
Public methodCellStyle Initializes a new style object with (Arial, 10) like default values.
Top
Properties
 NameDescription
Public propertyAdjustToSize Gets or sets a value indicating whether the content size should be adjusted to the cell size.
Public propertyBorders Gets or sets cell borders.
Public propertyFill Get or sets fill pattern style.
Public propertyFont Gets or sets font settings.
Public propertyHorizontalAlignment Gets or sets horizontal alignment style.
Public propertyIndentation Gets or sets cell data indentation style.
Public propertyIsDefault Returns true if cell style is default; otherwise, false.
Public propertyIsTextVertical Gets or sets the vertical display style of the text in the cell.
Public propertyLocked Gets or sets if the cell is locked (protected).
Public propertyNumberFormat Gets or sets the string value that will be used to format and display the contents of the cell.
Public propertyRotation Gets or sets cell data rotation style (counterclockwise).
Public propertyVerticalAlignment Gets or sets vertical alignment style.
Public propertyWrapText Gets or sets if the text is wrapped.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks
The internal caching algorithm ensures that duplicate styles are eliminated.
See Also