Style.NumberFormat Class

PicoXLSX

PicoXLSX

StyleNumberFormat Class

Class representing a NumberFormat entry. The NumberFormat entry is used to define cell formats like currency or date
Inheritance Hierarchy
SystemObject  PicoXLSXAbstractStyle
    PicoXLSXStyleNumberFormat

Namespace:  PicoXLSX
Assembly:  PicoXLSX (in PicoXLSX.dll) Version: 2.4.0.0 (2.4.0)
Syntax
C#
public class NumberFormat : AbstractStyle

The StyleNumberFormat type exposes the following members.

Constructors
  NameDescription
Public methodStyleNumberFormat
Default constructor
Top
Properties
  NameDescription
Public propertyCustomFormatCode
Gets or sets the custom format code in the notation of Excel
Public propertyCustomFormatID
Gets or sets the format number of the custom format. Must be higher or equal then predefined custom number (164)
Public propertyHash
Gets the unique hash of the object
(Inherited from AbstractStyle.)
Public propertyInternalID
Gets or sets the internal ID for sorting purpose in the Excel style document (nullable)
(Inherited from AbstractStyle.)
Public propertyIsCustomFormat
Gets whether the number format is a custom format (higher or equals 164). If true, the format is custom
Public propertyNumber
Gets or sets the format number. Set this to custom (164) in case of custom number formats
Top
Methods
  NameDescription
Public methodCalculateHash
Override method to calculate the hash of this component
(Overrides AbstractStyleCalculateHash.)
Public methodCompareTo
Method to compare two objects for sorting purpose
(Inherited from AbstractStyle.)
Public methodCopy
Method to copy the current object to a new one without casting
(Overrides AbstractStyleCopy.)
Public methodCopyNumberFormat
Method to copy the current object to a new one with casting
Protected methodCopyPropertiesT
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.)
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodEquals(AbstractStyle)
Method to compare two objects for sorting purpose
(Inherited from AbstractStyle.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Override toString method
(Overrides ObjectToString.)
Top
Fields
  NameDescription
Public fieldStatic memberCUSTOMFORMAT_START_NUMBER
Start ID for custom number formats as constant
Top
See Also