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接口定义必须由重复项列表的所有列表控件(如、和)实现的属性和方法 CheckBoxList DataList RadioButtonListThe 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.

适用于

另请参阅