Syncfusion.XlsIO.Base
Example 


HasNumber Property

Gets a Boolean value indicating whether Range contains number. Read-only.
Syntax
'Declaration
 
ReadOnly Property HasNumber As Boolean
'Usage
 
Dim instance As IRange
Dim value As Boolean
 
value = instance.HasNumber
bool HasNumber {get;}
Example
The following code illustrates how to set and access Value2 property of the Range.
IWorksheet sheet = workbook.Worksheets[0];
            
//Assigning Value2 property of the Range
sheet["A2"].Value2 = 45;
            
// Checking Range types.
bool isNumber =  sheet["A2"].HasNumber;
            
workbook.SaveAs("HasNumber.xlsx");
workbook.Close();
excelEngine.Dispose();
AssemblyVersion

Syncfusion.XlsIO.Base: 16.4460.0.40

See Also