ClickedEventArgs.ControlId Property

Gets the value of ID property for the Button control that raised the event.

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

public abstract string ControlId { get; }

Property Value

Type: System.String
The ID of the button control.

In the following example, the ControlId property is used to display the ID property value (MyButton) for the Button control.

public void MyButton_Clicked(object sender, ClickedEventArgs e)