Document.ComputeStatistics 方法

基于文档的内容获取统计信息。

命名空间:  Microsoft.Office.Tools.Word
程序集:  Microsoft.Office.Tools.Word(在 Microsoft.Office.Tools.Word.dll 中)

语法

声明
Function ComputeStatistics ( _
    Statistic As WdStatistic, _
    ByRef IncludeFootnotesAndEndnotes As Object _
) As Integer
int ComputeStatistics(
    WdStatistic Statistic,
    ref Object IncludeFootnotesAndEndnotes
)

参数

  • IncludeFootnotesAndEndnotes
    类型:System.Object%
    如果为 true,则在计算统计信息时包括脚注和尾注。默认值为 false。

返回值

类型:System.Int32
文档中由 Statistic 参数指定的该类型项的数目。

备注

可选参数

有关可选参数的信息,请参见Office 解决方案中的可选参数

.NET Framework 安全性

请参见

参考

Document 接口

Microsoft.Office.Tools.Word 命名空间