Edit

Bagikan melalui


PageAdapter.RegisterRadioButton(RadioButton) Method

Definition

Adds a radio button control to the collection for a specified radio button group.

public:
 virtual void RegisterRadioButton(System::Web::UI::WebControls::RadioButton ^ radioButton);
public virtual void RegisterRadioButton (System.Web.UI.WebControls.RadioButton radioButton);
abstract member RegisterRadioButton : System.Web.UI.WebControls.RadioButton -> unit
override this.RegisterRadioButton : System.Web.UI.WebControls.RadioButton -> unit
Public Overridable Sub RegisterRadioButton (radioButton As RadioButton)

Parameters

radioButton
RadioButton

The RadioButton to add to the collection.

Remarks

The PageAdapter class uses a ListDictionary object to maintain a list of radio button groups. Each element in ListDictionary is a collection of the RadioButton controls in a radio button group. The RegisterRadioButton method adds a RadioButton control to the appropriate collection, creating the collection if it does not already exist, and creating ListDictionary if there are no previously registered RadioButton controls.

Radio button control adapters use the RegisterRadioButton and GetRadioButtonsByGroup methods to reference the other RadioButton controls in a radio button group.

Applies to

See also