RadioButtonList.IRepeatInfoUser.RenderItem Method

Definition

Renders an item in the list with the specified information.

C#
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

One of the ListItemType enumeration values.

repeatIndex
Int32

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

repeatInfo
RepeatInfo

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

writer
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

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also