[XpsDocument.DocumentCount property 返回 XPS 包内的文档数。 public int DocumentCount { get; } 也可以看看 class XpsDocument 命名空间 Aspose.Page.XPS 部件 Aspose.Page]