asp.net.ph

RepeaterItem Constructor

System.Web.UI.WebControls Namespace   RepeaterItem Class


Initializes a new instance of the RepeaterItem class.

[ VB ]
Public Sub New ( _
   ByVal itemIndex As Integer, _
   ByVal itemType As ListItemType _
)

[ C# ]
public RepeaterItem (
   int itemIndex,
   ListItemType itemType
);

[ C++ ]
public: RepeaterItem (
   int itemIndex,
   ListItemType itemType
);

[ JScript ]
public function RepeaterItem (
   itemIndex : int,
   itemType : ListItemType
);

Parameters

itemIndex
An index that specifies the position of the item within the Repeater.
itemType
One of the ListItemType enum values.

Remarks

Use this constructor to initialize a new instance of the RepeaterItem class.

Example

The following example demonstrates how to initialize a new instance of the RepeaterItem class.

void Page_Load ( Object src, EventArgs e ) {
   int index = 0;
   RepeaterItem myItem = new RepeaterItem ( index, ListItemType.Item );
}
  C# VB

See Also

RepeaterItem Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph