Syncfusion.XlsIO.Base
Example 


HasDateTime Property

Gets a Boolean value indicating whether Range contains DateTime value. Read-only.
Syntax
'Declaration
 
ReadOnly Property HasDateTime As Boolean
'Usage
 
Dim instance As IRange
Dim value As Boolean
 
value = instance.HasDateTime
bool HasDateTime {get;}
Example
The following code illustrates how to set and access HasDateTime property of the Range.
ExcelEngine excelEngine = new ExcelEngine();
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Excel2013;
IWorkbook workbook = application.Workbooks.Create(1);
            
IWorksheet sheet = workbook.Worksheets[0];
            
//Assigning Value2 property of the Range
sheet["A1"].Value2 = DateTime.Now;
            
// Checking Range types.
bool isDateTime =  sheet["A1"].HasDateTime;
            
workbook.SaveAs("HasDateTime.xlsx");
workbook.Close();
excelEngine.Dispose();
AssemblyVersion

Syncfusion.XlsIO.Base: 16.4460.0.40

See Also