Share via


ActionEventArgs.Properties Property

Gets all properties that have been implemented for the smart tag. This type or member is intended to be used only in projects for the 2007 Microsoft Office system. Smart tags are deprecated in Office 2010. .

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

Syntax

'Declaration
ReadOnly Property Properties As ISmartTagProperties
ISmartTagProperties Properties { get; }

Property Value

Type: Microsoft.Office.Interop.SmartTag.ISmartTagProperties
All properties that have been implemented for the smart tag.

Remarks

The 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.Office.Interop.SmartTag from the .NET 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 interface. This example assumes that you have added a reference to Microsoft.Office.Interop.SmartTag from the .NET 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 Microsoft.Office.Tools.Excel.ActionEventArgs) Handles Action1.Click

    Dim propertyBag As ISmartTagProperties = e.Properties
    Dim key As String = "Key1"
    MessageBox.Show("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.Excel.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 Interface

Microsoft.Office.Tools.Excel Namespace