EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

Application.SmartTagTypes Property (Word)

This documentation is preliminary and is subject to change.

Returns a SmartTagTypes collection that represents the smart tag types for the smart tag components installed in Microsoft Word.

expression .SmartTagTypes

expression An expression that returns an Application object.

A smart tag type is a single item in a smart tag component. Smart tag components can contain multiple smart tag types. For example, the Address (English) smart tag list installed on English systems by default contains a name smart tag type, a street smart tag type, and a city smart tag type, to name just a few. The SmartTagTypes collection contains all smart tag types for all components installed on a user's computer.

The following example loops through the SmartTagTypes collection. If the SmartTagType is the Address smart tag, then it reloads the recognizers and handlers for that smart tag.

Sub GetSmartTagsTypes() 
 Dim objSmartTagType As SmartTagType 
 Dim strSmartTagType As String 
 
 strSmartTagType = "urn:schemas-microsoft-com" & _ 
 ":office:smarttags#address" 
 
 For Each objSmartTagType In Application.SmartTagTypes 
 If objSmartTagType = strSmartTagType Then 
 With objSmartTagType 
 .SmartTagActions.ReloadActions 
 .SmartTagRecognizers.ReloadRecognizers 
 End With 
 End If 
 Next 
End Sub

커뮤니티 추가 항목

표시: