Syncfusion.XlsIO.Base
Example 


IsModified Property

Gets value indicating whether format was modified, compared to parent format.
Syntax
'Declaration
 
ReadOnly Property IsModified As Boolean
'Usage
 
Dim instance As IExtendedFormat
Dim value As Boolean
 
value = instance.IsModified
bool IsModified {get;}
Example
The following code illustrates how to set IsModified property.
using Syncfusion.XlsIO;
using System;
            
class Program
{
    static void Main()
    {
        using (ExcelEngine excelEngine = new ExcelEngine())
        {
            //Create worksheet
            IApplication application = excelEngine.Excel;
            application.DefaultVersion = ExcelVersion.Excel2013;
            IWorkbook workbook = application.Workbooks.Create(1);
            IWorksheet worksheet = workbook.Worksheets[0];
            
            //Set style
            IStyle style = worksheet["C2"].CellStyle;
            
            //Get extended format
            IExtendedFormat format = worksheet["E2"].CellStyle;
            
            //Check IsModified
            Console.WriteLine(style.IsModified);
            Console.WriteLine(format.IsModified);
            
            //Save and Dispose
            workbook.SaveAs("CellFormats.xlsx");
            workbook.Close();
            Console.ReadKey();
        }
    }
}
//Output will be
//False
//False
AssemblyVersion

Syncfusion.XlsIO.Base: 17.1460.0.32

See Also