IRepeatInfoUser 介面

定義

定義必須由重複項目清單的任何清單控制項所實作的屬性和方法。Defines the properties and methods that must be implemented by any list control that repeats a list of items.

public interface class IRepeatInfoUser
public interface IRepeatInfoUser
type IRepeatInfoUser = interface
Public Interface IRepeatInfoUser
衍生

備註

IRepeatInfoUser介面會定義所有清單控制項必須執行的屬性和方法,以重複專案清單,例如 CheckBoxListDataListRadioButtonListThe IRepeatInfoUser interface defines the properties and methods that must be implemented by all list controls that repeats a list of items, such as CheckBoxList, DataList, and RadioButtonList. 若要指出清單控制項是否包含標題區段、頁尾區段或分隔符號,此介面會 HasHeader 分別定義、 HasFooterHasSeparators 屬性。To indicate whether a list control contains a heading section, footer section, or separators, this interface defines the HasHeader, HasFooter, and HasSeparators properties, respectively. RepeatedItemCount屬性是用來表示清單中的專案數。The RepeatedItemCount property is used to represent the number of items in the list. 使用 GetItemStyle 方法來決定清單中專案的樣式。Use the GetItemStyle method to determine the style of an item in the list. RenderItem方法是用來顯示專案。The RenderItem method is used to display an item.

屬性

HasFooter

取得值,指出清單控制項是否包含頁尾區段。Gets a value indicating whether the list control contains a footer section.

HasHeader

取得值,指出清單控制項是否包含頁首區段。Gets a value indicating whether the list control contains a heading section.

HasSeparators

取得值,指出清單控制項是否在清單內的項目之間包含分隔符號。Gets a value indicating whether the list control contains a separator between items in the list.

RepeatedItemCount

取得清單控制項中的項目數。Gets the number of items in the list control.

方法

GetItemStyle(ListItemType, Int32)

在清單控制項的指定索引處,擷取指定項目類型的樣式。Retrieves the style of the specified item type at the specified index in the list control.

RenderItem(ListItemType, Int32, RepeatInfo, HtmlTextWriter)

呈現具有指定資訊之清單中的項目。Renders an item in the list with the specified information.

適用於

另請參閱