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
);
- itemIndex
- An index that specifies the position of the item within the Repeater.
- itemType
- One of the ListItemType enum values.
Use this constructor to initialize a new instance of the RepeaterItem class.
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 );
}
Sub Page_Load ( src As Object, e As EventArgs )
Dim index As Integer = 0
Dim myItem As New RepeaterItem ( index, ListItemType.Item )
End Sub |
|
C# |
VB |
RepeaterItem Members