Determines whether the specified value can be converted to a double-precision, floating point value and is between the minimum and maximum allowed values.
Syntax
Visual Basic (Declaration) | |
---|
Public Overrides Function IsValid( _
ByVal value As Object _
) As Boolean |
Parameters
- value
- Value to validate (as object)
Return Value
Boolean:
true if the value can be converted to a double-precision, floating-point value and is between the minimum and maximum value;
false otherwise
Remarks
Example
This examples returns if the value in the cell is valid.
C# | Copy Code |
---|
FarPoint.Win.Spread.CellType.PercentCellType p = new FarPoint.Win.Spread.CellType.PercentCellType();
bool b;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = p;
fpSpread1.ActiveSheet.Cells[0, 0].Value = 0.05;
b = p.IsValid(fpSpread1.ActiveSheet.Cells[0, 0].Value);
MessageBox.Show(b.ToString()); |
Visual Basic | Copy Code |
---|
FarPoint.Win.Spread.CellType.PercentCellType p = new FarPoint.Win.Spread.CellType.PercentCellType();
bool b;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = p;
fpSpread1.ActiveSheet.Cells[0, 0].Value = 0.05;
b = p.IsValid(fpSpread1.ActiveSheet.Cells[0, 0].Value);
MessageBox.Show(b.ToString()); |
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