Click or drag to resize
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: 3.2.1+e0edc719a6aeecf6c989e5a57750c75d6f3175bb
Syntax
C#
public class NumberFormat : AbstractStyle

The StyleNumberFormat type exposes the following members.

Constructors
 NameDescription
Public methodStyleNumberFormat Initializes a new instance of the StyleNumberFormat class
Top
Properties
 NameDescription
Public propertyCustomFormatCode Gets or sets the raw custom format code in the notation of Excel. The code is not escaped automatically
Public propertyCustomFormatID Gets or sets the format number of the custom format. Must be higher or equal then predefined custom number (164)
Public propertyInternalID Gets or sets the internal ID for sorting purpose in the Excel style document (nullable)
(Inherited from AbstractStyle)
Public propertyIsCustomFormat Gets a value indicating whether IsCustomFormat 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 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(AbstractStyle) Method to compare two objects for sorting purpose
(Inherited from AbstractStyle)
Public methodEquals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCode Returns a hash code for this instance
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberIsDateFormat Determines whether a defined style format number represents a date (or date and time)
Public methodStatic memberIsTimeFormat Determines whether a defined style format number represents a time)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToString Override toString method
(Overrides ObjectToString)
Public methodStatic memberTryParseFormatNumber Tries to parse registered format numbers. If the parsing fails, it is assumed that the number is a custom format number (164 or higher) and 'custom' is returned
Top
Fields
 NameDescription
Public fieldStatic memberCUSTOMFORMAT_START_NUMBER Start ID for custom number formats as constant
Public fieldStatic memberDEFAULT_NUMBER Default format number as constant
Top
See Also