SpreadsheetRootPackageInspectionPackage Property
Gets a metadata package containing inspection results for the document. The package contains information about document parts that can be considered as metadata in some cases.

Namespace: GroupDocs.Metadata.Formats.Document
Assembly: GroupDocs.Metadata (in GroupDocs.Metadata.dll) Version: 21.8
Syntax
public SpreadsheetInspectionPackage InspectionPackage { get; }

Property Value

Type: SpreadsheetInspectionPackage
A metadata package containing inspection results for the document.
Remarks
Examples
This code snippet shows how to inspect a spreadsheet document.
C#
using (Metadata metadata = new Metadata(Constants.InputXls))
{
    var root = metadata.GetRootPackage<SpreadsheetRootPackage>();

    if (root.InspectionPackage.Comments != null)
    {
        foreach (var comment in root.InspectionPackage.Comments)
        {
            Console.WriteLine(comment.Author);
            Console.WriteLine(comment.Text);
            Console.WriteLine(comment.SheetNumber);
            Console.WriteLine(comment.Row);
            Console.WriteLine(comment.Column);
        }
    }

    if (root.InspectionPackage.DigitalSignatures != null)
    {
        foreach (var signature in root.InspectionPackage.DigitalSignatures)
        {
            Console.WriteLine(signature.CertificateSubject);
            Console.WriteLine(signature.Comments);
            Console.WriteLine(signature.SignTime);

            // ...
        }
    }

    if (root.InspectionPackage.HiddenSheets != null)
    {
        foreach (var sheet in root.InspectionPackage.HiddenSheets)
        {
            Console.WriteLine(sheet.Name);
            Console.WriteLine(sheet.Number);
        }
    }
}
See Also