ActionEventArgs.Properties Property (2007 System)

Gets all properties that have been implemented for the smart tag.

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

Syntax

'Declaration
Public ReadOnly Property Properties As ISmartTagProperties
'Usage
Dim instance As ActionEventArgs 
Dim value As ISmartTagProperties 

value = instance.Properties
public ISmartTagProperties Properties { get; }
public:
property ISmartTagProperties^ Properties {
    ISmartTagProperties^ get ();
}
public function get Properties () : ISmartTagProperties

Property Value

Type: ISmartTagProperties
A Microsoft.Office.Interop.SmartTag.ISmartTagProperties object that contains all of the properties that have been implemented for the smart tag.

Remarks

The Microsoft.Office.Interop.SmartTag.ISmartTagProperties interface is provided in the Microsoft Office Smart Tag Software Development Kit (SDK). To use this interface in your code, add a reference to Microsoft Smart Tags 2.0 Type Library from the COM tab of the Add Reference dialog box.

Examples

The following code example demonstrates a handler for the Click event. The event handler uses the Properties property to get a property value from the keyed collection of smart tag properties. This code example is part of a larger example provided for the SmartTag class. This example assumes that you have added a reference to Microsoft Smart Tags 2.0 Type Library from the COM tab of the Add Reference dialog box.

This example is for a document-level customization.

' This action displays the property value for the term. 
Private Sub Action1_Click(ByVal sender As Object, _
    ByVal e As ActionEventArgs) Handles Action1.Click

    Dim propertyBag As ISmartTagProperties = e.Properties
    Dim key As String = "Key1"
    MsgBox("The corresponding value of " & _
        key & " is: " & propertyBag.Read(key))
End Sub
// This action displays the property value for the term. 
private void Action1_Click(object sender, 
    Microsoft.Office.Tools.Word.ActionEventArgs e)
{
    ISmartTagProperties propertyBag = e.Properties;
    string key = "Key1";
    MessageBox.Show("The corresponding value of " + key + 
        " is: " + propertyBag.get_Read(key));
}

.NET Framework Security

See Also

Reference

ActionEventArgs Class

ActionEventArgs Members

Microsoft.Office.Tools.Word Namespace