ControlNameFromID Property [Office 2003 SDK Documentation]
The ControlNameFromID property specifies a string that can be used to access each of the controls in the Document Actions task pane for a smart document by using the SmartTagActions collection within an application's Microsoft Visual Basic for Applications (VBA) object model.
Applies to
Syntax
[Visual Basic 6.0]
Private Property Get ISmartDocument_ControlNameFromID(ByVal ControlID As Long) As String
[Visual Basic .NET]
Public ReadOnly Property ControlNameFromID(ByVal ControlID As Integer) As String Implements Microsoft.Office.Interop.SmartTag.ISmartDocument.ControlNameFromID
[C#]
public string ISmartDocument.get_ControlNameFromID(int ControlID)
[Visual C++ 6.0]
STDMETHOD(get_ControlNameFromID)(INT ControlID, BSTR * Name)
[Visual C++ .NET]
STDMETHOD(get_ControlNameFromID)(int ControlID, BSTR * Name)
Parameters
ControlID Represents the ID number assigned to a control in the ControlID property.
Remarks
Using the ControlNameFromID property, you can assign a friendly name to each of the controls in your smart document. For example, you might assign a text box control the friendly name of "FirstName." Then if you wanted to access that control from the VBA object model, you would access it by using SmartTagActions("FirstName").