HangulAndAlphabetException 对象 (Word)HangulAndAlphabetException object (Word)

代表单个朝鲜文字或字母自动更正例外。Represents a single Hangul or alphabet AutoCorrect exception. HangulAndAlphabetException对象是HangulAndAlphabetExceptions集合的成员。The HangulAndAlphabetException object is a member of the HangulAndAlphabetExceptions collection.

备注Remarks

HangulAndAlphabetExceptions (Index),其中 Index 是朝鲜文字或字母自动更正例外名称或索引号,用于返回单个HangulAndAlphabetException对象。Use HangulAndAlphabetExceptions (Index), where Index is the Hangul or alphabet AutoCorrect exception name or the index number, to return a single HangulAndAlphabetException object. 下面的示例删除的字母自动更正例外名为"你好。"The following example deletes the alphabet AutoCorrect exception named "hello."

AutoCorrect.HangulAndAlphabetExceptions("hello").Delete

索引号代表朝鲜文字或字母自动更正例外**HangulAndAlphabetExceptions** 集合中的位置。The index number represents the position of the Hangul or alphabet AutoCorrect exception in the HangulAndAlphabetExceptions collection. 下面的示例显示**HangulAndAlphabetExceptions** 集合中的第一个项目的名称。The following example displays the name of the first item in the HangulAndAlphabetExceptions collection.

MsgBox AutoCorrect.HangulAndAlphabetExceptions(1).Name

如果将HangulAndAlphabetAutoAdd属性的值为True ,单词将自动添加到列表朝鲜文和字母自动更正例外项。If the value of the HangulAndAlphabetAutoAdd property is True , words are automatically added to the list of Hangul and alphabet AutoCorrect exceptions. 使用Add方法将项目添加到**HangulAndAlphabetExceptions** 集合。Use the Add method to add an item to the HangulAndAlphabetExceptions collection. 下面的示例将"goodbye 替换"向字母自动更正例外项列表。The following example adds "goodbye" to the list of alphabet AutoCorrect exceptions.

AutoCorrect.HangulAndAlphabetExceptions.Add Name:="goodbye"

注释 HangulAndAlphabetExceptions 集合包含所有的朝鲜文和字母自动更正例外项和对应于自动更正例外项对话框中朝鲜语选项卡上列出的项目。Note The HangulAndAlphabetExceptions collection includes all Hangul and alphabet AutoCorrect exceptions and corresponds to the items listed on the Korean tab in the AutoCorrect Exceptions dialog box.

另请参阅See also

Word 对象模型引用Word Object Model Reference