IRepeatInfoUser

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( )



ASP. NET in a Nutshell
ASP.NET in a Nutshell, Second Edition
ISBN: 0596005202
EAN: 2147483647
Year: 2003
Pages: 873

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net