編輯

共用方式為


IRepeatInfoUser.RenderItem Method

Definition

Renders an item in the list with the specified information.

public:
 void RenderItem(System::Web::UI::WebControls::ListItemType itemType, int repeatIndex, System::Web::UI::WebControls::RepeatInfo ^ repeatInfo, System::Web::UI::HtmlTextWriter ^ writer);
public void RenderItem (System.Web.UI.WebControls.ListItemType itemType, int repeatIndex, System.Web.UI.WebControls.RepeatInfo repeatInfo, System.Web.UI.HtmlTextWriter writer);
abstract member RenderItem : System.Web.UI.WebControls.ListItemType * int * System.Web.UI.WebControls.RepeatInfo * System.Web.UI.HtmlTextWriter -> unit
Public Sub RenderItem (itemType As ListItemType, repeatIndex As Integer, repeatInfo As RepeatInfo, writer As HtmlTextWriter)

Parameters

itemType
ListItemType

One of the ListItemType enumeration values.

repeatIndex
Int32

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

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.

Remarks

A list control that inherits from the IRepeatInfoUser interface must implement the RenderItem method to render an item in the list with the specified information.

Applies to

See also