ControlEvents.Item[String] 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 the Clicked event associated with a Button control from the ControlEvents collection.
public:
abstract property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ controlId); };
public abstract object this[string controlId] { get; }
member this.Item(string) : obj
Default Public MustOverride ReadOnly Property Item(controlId As String) As Object
Parameters
- controlId
- String
The ID of the Button control associated with the Clicked event.
Property Value
The Clicked event associated with the specified Button control.
Remarks
Important: The code to bind event handlers using the ControlEvents class is not meant to be written by the developer in form code. When you add an event handler for a Button control to your form template from the design mode user interface, InfoPath generates code in the InternalStartup method of your form code file using the EventManager class and the ControlEvents class to bind the Clicked events raised by Button controls to their event handlers. You should not create the InternalStartup method or write any additional code within it yourself. For information about how to add event handlers using interface commands, see How to: Add an Event Handler.