Syncfusion.XlsIO.Base
Example 


IsMerged Property

Gets a Boolean value indicating whether Range is a part of merged Range. Read-only.
Syntax
'Declaration
 
ReadOnly Property IsMerged As Boolean
'Usage
 
Dim instance As IRange
Dim value As Boolean
 
value = instance.IsMerged
bool IsMerged {get;}
Example
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 text
            worksheet["A1"].Text = "Sample text in cell";
            
            //Set merge
            worksheet["A1:B1"].Merge();
            
            //Check merge
            Console.Write(worksheet["A1:B1"].IsMerged);
            
            //Save and dispose
            workbook.SaveAs("CellFormats.xlsx");
            workbook.Close();
            Console.ReadKey();
        }
    }
}
//Output will be
//True
AssemblyVersion

Syncfusion.XlsIO.Base: 16.4460.0.40

See Also