Document.ComputeStatistics 方法

依據文件的內容取得統計資料。

命名空間:  Microsoft.Office.Tools.Word
組件:   Microsoft.Office.Tools.Word.v4.0.Utilities (在 Microsoft.Office.Tools.Word.v4.0.Utilities.dll 中)
  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 命名空間