InspectionPackage
Leave feedback
On this page
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.
public SpreadsheetInspectionPackage InspectionPackage { get; }
A metadata package containing inspection results for the document.
Learn more
This code snippet shows how to inspect a spreadsheet document.
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);
}
}
}
- class SpreadsheetInspectionPackage
- class SpreadsheetRootPackage
- namespace GroupDocs.Metadata.Formats.Document
- assembly GroupDocs.Metadata
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.