SpreadsheetGear 2023
IsValidNumber Method (IValues)


SpreadsheetGear.Advanced.Cells Namespace > IValues Interface : IsValidNumber Method
The number to validate.
Returns true if the specified number is a valid number, otherwise false is returned.
Syntax
'Declaration
 
Function IsValidNumber( _
   ByVal number As System.Double _
) As System.Boolean
'Usage
 
Dim instance As IValues
Dim number As System.Double
Dim value As System.Boolean
 
value = instance.IsValidNumber(number)
System.bool IsValidNumber( 
   System.double number
)

Parameters

number
The number to validate.

Return Value

true if the number is a valid number, false otherwise.
Remarks
Unlike SpreadsheetGear.IRange.Value, IValues.SetNumber assumes the number being placed in a cell is a valid cell number. A valid cell number is either zero, or a non-zero number which is not suffering from underflow or overflow. Positive infinity, negative infinity and NaN are not valid numbers.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IValues Interface
IValues Members
SetNumber Method
ValidateNumber Method