Syncfusion.XlsIO.Base
Example 


Author Property (IComment)

Returns or sets the author of the comment. Read-only String.
Syntax
'Declaration
 
ReadOnly Property Author As String
'Usage
 
Dim instance As IComment
Dim value As String
 
value = instance.Author
string Author {get;}
Example
The following code illustrates how to access Author 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();
            
            //Add text
            comment.Text = "Comment";
            
            //Get author
            Console.Write(comment.Author);
            
            //Save and dispose
            workbook.SaveAs("Comments.xlsx");
            workbook.Close();
            Console.ReadKey();
        }
    }
}
//Output will be
//{Your username will be printed}
AssemblyVersion

Syncfusion.XlsIO.Base: 17.2460.0.34

See Also