Share via


SmartTagType.SmartTagActions Property

Word Developer Reference

Returns a SmartTagActions collection that represents the collection of actions available on a smart tag.

Syntax

expression.SmartTagActions

expression   Required. A variable that represents a SmartTagType object.

Example

The following code returns a collection of SmartTagAction objects associated with the Address smart tag, and then it uses the ReloadActions method to reload actions for each smart tag in the returned collection.

Visual Basic for Applications
  Dim objSmartTag As SmartTag
Dim objSmartTags As SmartTags
Dim strSmartTagName As String
   
strSmartTagName = "urn:schemas-microsoft-com" & _
    ":office:smarttags#address"
    
Set objSmartTags = ActiveDocument.SmartTags _
    .SmartTagsByType(strSmartTagName)
    
For Each objSmartTag In objSmartTags
    objSmartTag.SmartTagActions.ReloadActions
Next

See Also