ActionEventArgs.Properties Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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..
public:
property Microsoft::Office::Interop::SmartTag::ISmartTagProperties ^ Properties { Microsoft::Office::Interop::SmartTag::ISmartTagProperties ^ get(); };
public Microsoft.Office.Interop.SmartTag.ISmartTagProperties Properties { get; }
member this.Properties : Microsoft.Office.Interop.SmartTag.ISmartTagProperties
Public ReadOnly Property Properties As ISmartTagProperties
Property Value
All properties that have been implemented for the smart tag.
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 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));
}
' 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
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.