XpsDocument.PageCount

XpsDocument.PageCount property

返回活动文档中的页数。

public int PageCount { get; }

也可以看看