NanoXLSX Library Documentation
![]() | Style Class |
Class representing a Style with sub classes within a style sheet. An instance of this class is only a container for the different sub-classes. These sub-classes contain the actual styling information.

Namespace: NanoXLSX.Style
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 1.2.3.0 (1.2.3)

C#
public class Style : AbstractStyle
The Style type exposes the following members.

Name | Description | |
---|---|---|
![]() | Style |
Default constructor
|
![]() | Style(String) |
Constructor with parameters
|
![]() | Style(String, Int32, Boolean) |
Constructor with parameters (internal use)
|

Name | Description | |
---|---|---|
![]() | CurrentBorder |
Gets or sets the current Border object of the style
|
![]() | CurrentCellXf |
Gets or sets the current CellXf object of the style
|
![]() | CurrentFill |
Gets or sets the current Fill object of the style
|
![]() | CurrentFont |
Gets or sets the current Font object of the style
|
![]() | CurrentNumberFormat |
Gets or sets the current NumberFormat object of the style
|
![]() | Hash |
Gets the unique hash of the object
(Inherited from AbstractStyle.) |
![]() | InternalID |
Gets or sets the internal ID for sorting purpose in the Excel style document (nullable)
(Inherited from AbstractStyle.) |
![]() | IsInternalStyle |
Gets whether the style is system internal. Such styles are not meant to be altered
|
![]() | Name |
Gets or sets the name of the style. If not defined, the automatically calculated hash will be used as name
|
![]() | StyleManagerReference |
Sets the reference of the style manager
|

Name | Description | |
---|---|---|
![]() | Append |
Appends the specified style parts to the current one. The parts can be instances of sub-classes like Border or CellXf or a Style instance. Only the altered properties of the specified style or style part that differs from a new / untouched style instance will be appended. This enables method chaining
|
![]() | CalculateHash |
Override method to calculate the hash of this component
(Overrides AbstractStyleCalculateHash.) |
![]() | CompareTo |
Method to compare two objects for sorting purpose
(Inherited from AbstractStyle.) |
![]() | Copy |
Method to copy the current object to a new one without casting
(Overrides AbstractStyleCopy.) |
![]() | CopyPropertiesT |
Internal method to copy altered properties from a source object. The decision whether a property is copied is dependent on a untouched reference object
(Inherited from AbstractStyle.) |
![]() | CopyStyle |
Method to copy the current object to a new one with casting
|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Equals(AbstractStyle) |
Method to compare two objects for sorting purpose
(Inherited from AbstractStyle.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ReorganizeStyle |
Method to reorganize / synchronize the components of this style
|
![]() | ToString |
Override toString method
(Overrides ObjectToString.) |
