ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources]

G. andrew Duthie; matthew Macdonald

نسخه متنی -صفحه : 873/ 772
نمايش فراداده

IRepeatInfoUser

System.Web.UI.WebControls (system.web.dll)interface

This interface specifies the contract for the RepeatInfo class. These requirements include properties that identify whether footer or header information is present (HasFooter and HasHeader) and identify the number of times the chosen control will be repeated (RepeatedItemCount). This interface also requires a method for rendering the chosen control (RenderItem( )), which will be used for each repetition.

public interface 

IRepeatInfoUser { // Public Instance Properties public bool

HasFooter {get; } public bool

HasHeader {get; } public bool

HasSeparators {get; } public int

RepeatedItemCount {get; } // Public Instance Methods public Style

GetItemStyle (ListItemType

itemType , int

repeatIndex ); public void

RenderItem (ListItemType

itemType , int

repeatIndex , RepeatInfo

repeatInfo , System.Web.UI.HtmlTextWriter

writer ); }

Implemented By

CheckBoxList, DataList, RadioButtonList

Passed To

RepeatInfo.RenderRepeater( )