ActionEventArgs.Properties Property
Gets all properties that have been implemented for the smart tag.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Syntax
'Declaration
ReadOnly Property Properties As ISmartTagProperties
ISmartTagProperties Properties { get; }
Property Value
Type: Microsoft.Office.Interop.SmartTag.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.Office.Interop.SmartTag from the .NET tab of the Add Reference dialog box.
Important
Smart tags are deprecated in Excel 2010 and Word 2010. You can still use the related APIs, but there is no smart tag functionality after Excel 2007 and Word 2007.
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 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.