RadioButtonList.IRepeatInfoUser.RenderItem(ListItemType, Int32, RepeatInfo, HtmlTextWriter) RadioButtonList.IRepeatInfoUser.RenderItem(ListItemType, Int32, RepeatInfo, HtmlTextWriter) Method

Definition

Renders an item in the list with the specified information.

 virtual void System.Web.UI.WebControls.IRepeatInfoUser.RenderItem(System::Web::UI::WebControls::ListItemType itemType, int repeatIndex, System::Web::UI::WebControls::RepeatInfo ^ repeatInfo, System::Web::UI::HtmlTextWriter ^ writer) = System::Web::UI::WebControls::IRepeatInfoUser::RenderItem;
void IRepeatInfoUser.RenderItem (System.Web.UI.WebControls.ListItemType itemType, int repeatIndex, System.Web.UI.WebControls.RepeatInfo repeatInfo, System.Web.UI.HtmlTextWriter writer);

Parameters

itemType
ListItemType ListItemType

One of the ListItemType enumeration values.

repeatIndex
Int32 Int32

An ordinal index that specifies the location of the item in the list.

repeatInfo
RepeatInfo RepeatInfo

A RepeatInfo that represents the information used to render the item in the list.

writer
HtmlTextWriter HtmlTextWriter

A HtmlTextWriter that represents the output stream to render HTML content on the client.

Implements

Remarks

Typically, you should use the RadioButtonList.RenderItem method to render items in a RadioButtonList control.

The IRepeatInfoUser.RenderItem method is an explicit interface member implementation. It can be used only when the RadioButtonList instance is cast to an IRepeatInfoUser interface.

Notes to Inheritors

To define a custom implementation for rendering items in a RadioButtonList control, override the RenderItem(ListItemType, Int32, RepeatInfo, HtmlTextWriter) method. The explicit interface implementation calls the RenderItem(ListItemType, Int32, RepeatInfo, HtmlTextWriter) method to render an item in the control.

Applies to

See also