BuiltInDocumentPropertyCollection.Author

BuiltInDocumentPropertyCollection.Author property

Gets or sets the name of the document’s author.

public string Author { get; set; }

Examples

using System;
using Aspose.Cells;

namespace AsposeCellsExamples
{
    public class BuiltInDocumentPropertyCollectionPropertyAuthorDemo
    {
        public static void Run()
        {
            // Create a new workbook
            Workbook workbook = new Workbook();

            // Set the author property
            string authorName = "John Doe";
            workbook.BuiltInDocumentProperties.Author = authorName;

            // Display the author property
            Console.WriteLine("Document Author: " + workbook.BuiltInDocumentProperties.Author);

            // Save the workbook
            workbook.Save("DocumentPropertiesDemo.xlsx", SaveFormat.Xlsx);
        }
    }
}

See Also