GetButtonIdForRadioButton() public static method

Gets the buttonId for a radio button.
When creating the config options for the dialog and specifying radio buttons, typically you pass in an array of radio label strings. The index specifies which button to get an id for. If you passed in Automatic, Manual, and Disabled, then index 1 specifies the Manual radio button.
public static GetButtonIdForRadioButton ( int index ) : int
index int The zero-based index into the array of radio buttons.
return int
 /// <summary>
 /// Sets the state of a radio button to enabled or disabled.
 /// </summary>
 /// <param name="index">The zero-based index of the button to set.</param>
 /// <param name="enabled"><c>true</c> to enable the button; <c>false</c> to disable</param>
 public void SetRadioButtonEnabledState(int index, bool enabled)
 {
     SetButtonEnabledState(TaskDialog.GetButtonIdForRadioButton(index), enabled);
 }
 /// <summary>
 /// Simulate the action of a radio button click in the TaskDialog.
 /// </summary>
 /// <param name="index">The zero-based index into the button set.</param>
 /// <returns>
 /// If the function succeeds the return value is true.
 /// </returns>
 public bool ClickRadioButton(int index)
 {
     return(ClickButton(TaskDialog.GetButtonIdForRadioButton(index)));
 }