DocumentStatistics

PresentationRootPackage.DocumentStatistics property

Gets the document statistics package.

public DocumentStatistics DocumentStatistics { get; }

Property Value

The document statistics package.

Remarks

Learn more

Examples

This code sample demonstrates how to obtain simple text statistics for a presentation.

using (Metadata metadata = new Metadata(Constants.InputPpt))
{
    var root = metadata.GetRootPackage<PresentationRootPackage>();

    Console.WriteLine(root.DocumentStatistics.CharacterCount);
    Console.WriteLine(root.DocumentStatistics.PageCount);
    Console.WriteLine(root.DocumentStatistics.WordCount);
}

See Also