Document.CheckSpelling 方法

開始文件的拼字檢查。

命名空間:  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 中)

語法

'宣告
Sub CheckSpelling ( _
    ByRef CustomDictionary As Object, _
    ByRef IgnoreUppercase As Object, _
    ByRef AlwaysSuggest As Object, _
    ByRef CustomDictionary2 As Object, _
    ByRef CustomDictionary3 As Object, _
    ByRef CustomDictionary4 As Object, _
    ByRef CustomDictionary5 As Object, _
    ByRef CustomDictionary6 As Object, _
    ByRef CustomDictionary7 As Object, _
    ByRef CustomDictionary8 As Object, _
    ByRef CustomDictionary9 As Object, _
    ByRef CustomDictionary10 As Object _
)
void CheckSpelling(
    ref Object CustomDictionary,
    ref Object IgnoreUppercase,
    ref Object AlwaysSuggest,
    ref Object CustomDictionary2,
    ref Object CustomDictionary3,
    ref Object CustomDictionary4,
    ref Object CustomDictionary5,
    ref Object CustomDictionary6,
    ref Object CustomDictionary7,
    ref Object CustomDictionary8,
    ref Object CustomDictionary9,
    ref Object CustomDictionary10
)

參數

  • CustomDictionary
    型別:System.Object%
    可能是傳回 Dictionary 的陳述式,或自訂字典的檔案名稱。
  • IgnoreUppercase
    型別:System.Object%
    如果忽略大小寫則為 true。如果省略這個引數,就會使用 IgnoreUppercase 屬性目前的值。
  • AlwaysSuggest
    型別:System.Object%
    若要 Microsoft Office Word 永遠建議替代的拼字,則為 true。如果省略這個引數,就會使用 SuggestSpellingCorrections 屬性的目前值。
  • CustomDictionary2
    型別:System.Object%
    可能是傳回 Dictionary 的運算式,或是其他自訂字典的檔案名稱。您最多可以指定九部其他字典。
  • CustomDictionary3
    型別:System.Object%
    可能是傳回 Dictionary 的運算式,或是其他自訂字典的檔案名稱。您最多可以指定九部其他字典。
  • CustomDictionary4
    型別:System.Object%
    可能是傳回 Dictionary 的運算式,或是其他自訂字典的檔案名稱。您最多可以指定九部其他字典。
  • CustomDictionary5
    型別:System.Object%
    可能是傳回 Dictionary 的運算式,或是其他自訂字典的檔案名稱。您最多可以指定九部其他字典。
  • CustomDictionary6
    型別:System.Object%
    可能是傳回 Dictionary 的運算式,或是其他自訂字典的檔案名稱。您最多可以指定九部其他字典。
  • CustomDictionary7
    型別:System.Object%
    可能是傳回 Dictionary 的運算式,或是其他自訂字典的檔案名稱。您最多可以指定九部其他字典。
  • CustomDictionary8
    型別:System.Object%
    可能是傳回 Dictionary 的運算式,或是其他自訂字典的檔案名稱。您最多可以指定九部其他字典。
  • CustomDictionary9
    型別:System.Object%
    可能是傳回 Dictionary 的運算式,或是其他自訂字典的檔案名稱。您最多可以指定九部其他字典。
  • CustomDictionary10
    型別:System.Object%
    可能是傳回 Dictionary 的運算式,或是其他自訂字典的檔案名稱。您最多可以指定九部其他字典。

備註

如果文件包含錯誤,這個方法會顯示 [拼字及文法檢查] 對話方塊,並清除 [檢查文法] 核取方塊。

此方法會檢查所有可用的大綱 (例如,頁首、頁尾和文字方塊)。

選擇性參數

如需選擇性參數的詳細資訊,請參閱Office 方案中的選擇性參數

.NET Framework 安全性

請參閱

參考

Document 介面

Microsoft.Office.Tools.Word 命名空間