ProofreadingErrors 接口

定义

指定文档或范围中的拼写错误和语法错误的集合。A collection of spelling and grammatical errors for the specified document or range.

public interface class ProofreadingErrors : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("000209BB-0000-0000-C000-000000000046")]
public interface ProofreadingErrors : System.Collections.IEnumerable
type ProofreadingErrors = interface
    interface IEnumerable
Public Interface ProofreadingErrors
Implements IEnumerable
属性
实现

注解

没有 ProofreadingError 对象;相反, ProofreadingErrors集合中的每一项都是一个 Range 代表一个拼写或语法错误的对象。There is no ProofreadingError object; instead, each item in the ProofreadingErrors collection is a Range object that represents one spelling or grammatical error.

使用或 Range 对象的SpellingErrorsGrammaticalErrors属性 Document 可返回ProofreadingErrors集合。Use the SpellingErrors or GrammaticalErrors property of a Document or Range object to return the ProofreadingErrors collection.

使用SpellingErrorsindex )(其中 index 是索引号)返回单个的拼写错误(由Range对象表示)。Use SpellingErrors(index), where index is the index number, to return a single spelling error (represented by a Range object).

使用GrammarErrorsindex )(其中 index 是索引号)可返回单个语法错误(由Range对象表示)。Use GrammarErrors(index), where index is the index number, to return a single grammatical error (represented by a Range object).

Count在文档中,此集合的属性返回的只是正文中的项目数。The Count property for this collection in a document returns the number of items in the main story only. 要统计其他部分中的个数,请使用带有 Range 对象的集合。To count items in other stories use the collection with the Range object. 如果文档或区域中的所有单词拼写正确且语法正确,则ProofreadingErrors对象的Count属性将返回0(零),并且Documentrange对象的SpellingCheckedGrammarChecked属性将返回TrueIf all the words in the document or range are spelled correctly and are grammatically correct, the Count property for the ProofreadingErrors object returns 0 (zero) and the SpellingChecked and GrammarChecked properties of the Document or Range object return True.

属性

Application

返回一个 Application 代表 Microsoft Word 应用程序的对象。Returns a Application object that represents the Microsoft Word application.

Count

返回指定集合中的项目数。Returns the number of items in the specified collection.

Creator

返回一个 32 位整数,它指示在其中创建指定的对象的应用程序。Returns a 32-bit integer that indicates the application in which the specified object was created.

Item[Int32]

返回集合中的单个对象。Returns an individual object in a collection.

Parent

返回一个对象,代表指定对象的父对象。Returns an object that represents the parent object of the specified object.

Type

返回校对错误的类型。Returns the type of proofreading error.

方法

GetEnumerator()

适用于