Share via


XMLNode.SmartTag Property (2007 System)

Gets a SmartTag object that represents the smart tag associated with the XMLNode control.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property SmartTag As SmartTag
'Usage
Dim instance As XMLNode 
Dim value As SmartTag 

value = instance.SmartTag
[BrowsableAttribute(false)]
public SmartTag SmartTag { get; }
[BrowsableAttribute(false)]
public:
property SmartTag^ SmartTag {
    SmartTag^ get ();
}
public function get SmartTag () : SmartTag

Property Value

Type: SmartTag
A SmartTag that represents the smart tag associated with the XMLNode control.

Remarks

XML elements can have smart tag actions assigned to them through external components that implement the ISmartTag interface.

Examples

The following code example uses the SmartTag property to reload the action of a smart tag associated with an XMLNode. This example assumes that the current document contains an XMLNode named CustomerNode.

Private Sub ReloadSmartTag()
    Try 
        Me.CustomerNode.SmartTag.SmartTagActions.ReloadActions()
    Catch ex As Exception
        MsgBox(ex.Message)
    End Try 
End Sub
private void ReloadSmartTag()
{
    try 
    {
        this.CustomerNode.SmartTag.SmartTagActions.ReloadActions();
    }
    catch (Exception ex)
    {
        MessageBox.Show(ex.Message);
    }
}

.NET Framework Security

See Also

Reference

XMLNode Class

XMLNode Members

Microsoft.Office.Tools.Word Namespace