BuiltInDocumentPropertyCollection.Comments

BuiltInDocumentPropertyCollection.Comments property

Gets or sets the document comments.

public string Comments { get; set; }

Examples

using System;
using Aspose.Cells;
using Aspose.Cells.Properties;

namespace AsposeCellsExamples
{
    public class BuiltInDocumentPropertyCollectionPropertyCommentsDemo
    {
        public static void Run()
        {
            // Create a new workbook
            Workbook workbook = new Workbook();
            
            // Access built-in document properties
            BuiltInDocumentPropertyCollection properties = workbook.BuiltInDocumentProperties;
            
            // Set the Comments property
            properties.Comments = "This is a sample comment for demonstration.";
            
            // Display the Comments property
            Console.WriteLine("Document Comments: " + properties.Comments);
            
            // Save the workbook
            workbook.Save("output.xlsx");
        }
    }
}

See Also