NanoXLSX Library Documentation
StyleNumberFormat Class |
Class representing a NumberFormat entry. The NumberFormat entry is used to define cell formats like currency or date
Inheritance Hierarchy
Namespace: NanoXLSX.Style
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 1.2.3.0 (1.2.3)
Syntax
C#
public class NumberFormat : AbstractStyle
The StyleNumberFormat type exposes the following members.
Constructors
Name | Description | |
---|---|---|
StyleNumberFormat |
Default constructor
|
Properties
Name | Description | |
---|---|---|
CustomFormatCode |
Gets or sets the custom format code in the notation of Excel
| |
CustomFormatID |
Gets or sets the format number of the custom format. Must be higher or equal then predefined custom number (164)
| |
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.) | |
IsCustomFormat |
Gets whether the number format is a custom format (higher or equals 164). If true, the format is custom
| |
Number |
Gets or sets the format number. Set this to custom (164) in case of custom number formats
|
Methods
Name | Description | |
---|---|---|
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.) | |
CopyNumberFormat |
Method to copy the current object to a new one with casting
| |
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.) | |
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.) | |
ToString |
Override toString method
(Overrides ObjectToString.) |
Fields
Name | Description | |
---|---|---|
CUSTOMFORMAT_START_NUMBER |
Start ID for custom number formats as constant
|
See Also