Syncfusion.XlsIO.Base
Example 


Syncfusion.XlsIO Namespace > IWorksheet Interface > Replace Method : Replace(String,DateTime) Method
The string to be replaced.
The datetime value to replace all occurrences of oldValue.

Replace(String,DateTime) Method

Replaces string with the specified DateTime value.
Syntax
'Declaration
 
Overloads Sub Replace( _
   ByVal oldValue As String, _
   ByVal newValue As Date _
) 
'Usage
 
Dim instance As IWorksheet
Dim oldValue As String
Dim newValue As Date
 
instance.Replace(oldValue, newValue)
void Replace( 
   string oldValue,
   DateTime newValue
)

Parameters

oldValue
The string to be replaced.
newValue
The datetime value to replace all occurrences of oldValue.
Example
The following code illustrates how to replace the string value with datetime.
string oldValue = "Find";
DateTime dateTime = DateTime.Now;
sheet.Replace(oldValue,dateTime);
AssemblyVersion

Syncfusion.XlsIO.Base: 16.4460.0.40

See Also