mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
Adding reference source for System.Data System.Data.DataSetExtensions System.Data.Entity System.Data.Entity.Design System.Data.Linq System.Data.SqlXml System.ServiceModel System.ServiceModel.Activation System.ServiceModel.Activities System.ServiceModel.Channels System.ServiceModel.Discovery System.ServiceModel.Internals System.ServiceModel.Routing System.ServiceModel.WasHosting System.ServiceModel.Web System.Web System.Web.ApplicationServices System.Web.DynamicData System.Web.Entity System.Web.Entity.Design System.Web.Extensions System.Web.Mobile System.Web.Routing System.Web.Services System.Xml System.Xml.Linq
102 lines
2.8 KiB
C#
102 lines
2.8 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="RepeaterItem.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.Web.UI.WebControls {
|
|
|
|
using System;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.Design;
|
|
using System.Web.UI;
|
|
|
|
/// <devdoc>
|
|
/// <para>Encapsulates an item within the <see cref='System.Web.UI.WebControls.Repeater'/> control.</para>
|
|
/// </devdoc>
|
|
[
|
|
ToolboxItem(false)
|
|
]
|
|
public class RepeaterItem : Control, IDataItemContainer {
|
|
|
|
private int itemIndex;
|
|
private ListItemType itemType;
|
|
private object dataItem;
|
|
|
|
|
|
/// <devdoc>
|
|
/// <para>Initializes a new instance of the <see cref='System.Web.UI.WebControls.RepeaterItem'/> with the specified item type and
|
|
/// location.</para>
|
|
/// </devdoc>
|
|
public RepeaterItem(int itemIndex, ListItemType itemType) {
|
|
this.itemIndex = itemIndex;
|
|
this.itemType = itemType;
|
|
}
|
|
|
|
|
|
|
|
/// <devdoc>
|
|
/// Specifies the data item.
|
|
/// </devdoc>
|
|
public virtual object DataItem {
|
|
get {
|
|
return dataItem;
|
|
}
|
|
set {
|
|
dataItem = value;
|
|
}
|
|
}
|
|
|
|
|
|
/// <devdoc>
|
|
/// <para>Indicates the ordinal index that specifies the item
|
|
/// location within the <see cref='System.Web.UI.WebControls.Repeater'/>
|
|
/// .</para>
|
|
/// </devdoc>
|
|
public virtual int ItemIndex {
|
|
get {
|
|
return itemIndex;
|
|
}
|
|
}
|
|
|
|
|
|
/// <devdoc>
|
|
/// Indicates the <see cref='System.Web.UI.WebControls.Repeater'/> item type. This property is
|
|
/// read-only.
|
|
/// </devdoc>
|
|
public virtual ListItemType ItemType {
|
|
get {
|
|
return itemType;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/// <internalonly/>
|
|
/// <devdoc>
|
|
/// </devdoc>
|
|
protected override bool OnBubbleEvent(object source, EventArgs e) {
|
|
if (e is CommandEventArgs) {
|
|
RepeaterCommandEventArgs args = new RepeaterCommandEventArgs(this, source, (CommandEventArgs)e);
|
|
|
|
RaiseBubbleEvent(this, args);
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
int IDataItemContainer.DataItemIndex {
|
|
get {
|
|
return ItemIndex;
|
|
}
|
|
}
|
|
|
|
int IDataItemContainer.DisplayIndex {
|
|
get {
|
|
return ItemIndex;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|