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 (索引),其中索引是朝鲜文字或字母 "自动更正" 例外名称或索引号,返回一个HangulAndAlphabetException对象。Use HangulAndAlphabetExceptions (Index), where Index is the Hangul or alphabet AutoCorrect exception name or the index number, to return a single HangulAndAlphabetException object. 以下示例删除名为“hello”的字母“自动更正”例外项。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 集合包含所有朝鲜文字和字母 "自动更正" 例外项,并对应于 "自动更正例外项" 对话框中的 "朝鲜语" 选项卡上列出的项目。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

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.