Click or drag to resize
NanoXLSX

NumberFormatTryParseFormatNumber Method

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

Namespace: NanoXLSX.Styles
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.2+7f12a949130e0be1e987e553d2d08c083176cdca
Syntax
C#
public static NumberFormatFormatRange TryParseFormatNumber(
	int number,
	out NumberFormatFormatNumber formatNumber
)

Parameters

number  Int32
Raw number to parse
formatNumber  NumberFormatFormatNumber
Out parameter with the parsed format enum value. If parsing failed, 'custom' will be returned

Return Value

NumberFormatFormatRange
Format range. Will return 'invalid' if out of any range (e.g. negative value)
See Also