Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / RepeaterItem.cs / 1305376 / RepeaterItem.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Web.UI;
///
/// Encapsulates an item within the control.
///
[
ToolboxItem(false)
]
public class RepeaterItem : Control, IDataItemContainer {
private int itemIndex;
private ListItemType itemType;
private object dataItem;
///
/// Initializes a new instance of the with the specified item type and
/// location.
///
public RepeaterItem(int itemIndex, ListItemType itemType) {
this.itemIndex = itemIndex;
this.itemType = itemType;
}
///
/// Specifies the data item.
///
public virtual object DataItem {
get {
return dataItem;
}
set {
dataItem = value;
}
}
///
/// Indicates the ordinal index that specifies the item
/// location within the
/// .
///
public virtual int ItemIndex {
get {
return itemIndex;
}
}
///
/// Indicates the item type. This property is
/// read-only.
///
public virtual ListItemType ItemType {
get {
return itemType;
}
}
///
///
///
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;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XD.cs
- WsatAdminException.cs
- DictionaryBase.cs
- Table.cs
- ThrowHelper.cs
- SplitContainer.cs
- WmpBitmapDecoder.cs
- Constraint.cs
- DataSourceView.cs
- XmlWriter.cs
- TimeZoneInfo.cs
- ViewBase.cs
- NoPersistProperty.cs
- MachineSettingsSection.cs
- VideoDrawing.cs
- String.cs
- AutomationPatternInfo.cs
- PropertyPathWorker.cs
- GrammarBuilderWildcard.cs
- mda.cs
- MenuCommand.cs
- RbTree.cs
- ResourceReader.cs
- NamespaceDecl.cs
- UIPermission.cs
- AccessViolationException.cs
- HwndSource.cs
- ActiveDesignSurfaceEvent.cs
- ProviderSettings.cs
- SByte.cs
- ProbeMatchesMessage11.cs
- FormViewDeletedEventArgs.cs
- TextTreeRootNode.cs
- CalendarDay.cs
- Transform3D.cs
- HttpUnhandledOperationInvoker.cs
- HwndTarget.cs
- DataSourceControlBuilder.cs
- Delegate.cs
- ResolvedKeyFrameEntry.cs
- ModelUIElement3D.cs
- UnsafePeerToPeerMethods.cs
- ParameterCollectionEditor.cs
- ObjectSecurity.cs
- WebPartPersonalization.cs
- HttpEncoderUtility.cs
- ReverseComparer.cs
- SafeEventLogWriteHandle.cs
- AuthenticationModuleElement.cs
- ValidatingPropertiesEventArgs.cs
- PaintValueEventArgs.cs
- ImportDesigner.xaml.cs
- DBPropSet.cs
- CancellationHandlerDesigner.cs
- AutoCompleteStringCollection.cs
- SortQuery.cs
- SafeSecurityHelper.cs
- DynamicPropertyReader.cs
- TraceListener.cs
- TreeViewImageKeyConverter.cs
- NativeMethods.cs
- _LocalDataStoreMgr.cs
- SimpleWorkerRequest.cs
- XamlToRtfWriter.cs
- GregorianCalendarHelper.cs
- URL.cs
- Application.cs
- Token.cs
- DSASignatureFormatter.cs
- DataKeyArray.cs
- Int32AnimationBase.cs
- CompositeCollection.cs
- ReadOnlyDataSource.cs
- GPRECT.cs
- TypeBuilder.cs
- columnmapfactory.cs
- EnlistmentTraceIdentifier.cs
- GridViewUpdatedEventArgs.cs
- WebCategoryAttribute.cs
- MailSettingsSection.cs
- GridViewRowPresenterBase.cs
- OdbcError.cs
- TreeViewItem.cs
- ComboBox.cs
- SystemIPv6InterfaceProperties.cs
- PopOutPanel.cs
- HostedHttpContext.cs
- QueryOpeningEnumerator.cs
- HttpCachePolicy.cs
- TypeDescriptionProviderAttribute.cs
- SigningCredentials.cs
- SqlFactory.cs
- __ConsoleStream.cs
- PropertyValueUIItem.cs
- EntityDataSourceValidationException.cs
- FlowchartDesigner.Helpers.cs
- DefaultHttpHandler.cs
- CompilationSection.cs
- CryptoSession.cs
- DocumentGridContextMenu.cs