Syncfusion.XlsIO.Base
Example 


Row Property (IComment)

Row of the commented cell. Read-only.
Syntax
'Declaration
 
ReadOnly Property Row As Integer
'Usage
 
Dim instance As IComment
Dim value As Integer
 
value = instance.Row
int Row {get;}
Example
The following code illustrates how to access the Row 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];
            
            //Add comment
            IComment comment = worksheet["C2"].AddComment();
            
            //Get row
            Console.Write(comment.Row);
            
            //Save and dispose
            workbook.SaveAs("Comments.xlsx");
            workbook.Close();
            Console.ReadKey();
        }
    }
}
//Output will be
//2
AssemblyVersion

Syncfusion.XlsIO.Base: 17.2460.0.34

See Also