Share via


SmartTagTypes Collection

Application
SmartTagTypes
SmartTagType
Multiple objects

Represents a collection of SmartTagType objects. 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 component 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.

Using the SmartTagTypes Collection

Use the SmartTagTypes property to return a collection of all smart tag types for all lists installed on a user's computer. Use the Item property to return a specific smart tag type in a collection of smart tags types. 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

Properties | Application Property | Count Property | Creator Property | Parent Property

Methods | Item Method | ReloadAll Method

Parent Objects | Application

Child Objects | SmartTagActions | SmartTagRecognizers