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; ////// [ ToolboxItem(false) ] public class RepeaterItem : Control, IDataItemContainer { private int itemIndex; private ListItemType itemType; private object dataItem; ///Encapsulates an item within the ///control. /// public RepeaterItem(int itemIndex, ListItemType itemType) { this.itemIndex = itemIndex; this.itemType = itemType; } ///Initializes a new instance of the ///with the specified item type and /// location. /// Specifies the data item. /// public virtual object DataItem { get { return dataItem; } set { dataItem = value; } } ////// public virtual int ItemIndex { get { return itemIndex; } } ///Indicates the ordinal index that specifies the item /// location within the ////// . /// Indicates the public virtual ListItemType ItemType { get { return itemType; } } ///item type. This property is /// read-only. /// /// /// 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
- XsltSettings.cs
- DelayedRegex.cs
- DbReferenceCollection.cs
- CfgParser.cs
- XsdDuration.cs
- Win32.cs
- BadImageFormatException.cs
- ListGeneralPage.cs
- FaultContractAttribute.cs
- InternalSafeNativeMethods.cs
- ConditionChanges.cs
- CounterSample.cs
- PtsHost.cs
- ProcessThreadCollection.cs
- XmlDocumentSerializer.cs
- WindowsListViewItemStartMenu.cs
- CompiledXpathExpr.cs
- ResourceDictionaryCollection.cs
- SelectionManager.cs
- odbcmetadatacollectionnames.cs
- Focus.cs
- GroupQuery.cs
- PropertyStore.cs
- CodeConditionStatement.cs
- DefaultTraceListener.cs
- ZipIOModeEnforcingStream.cs
- FormViewUpdateEventArgs.cs
- DebugView.cs
- ClientEndpointLoader.cs
- RubberbandSelector.cs
- GeometryHitTestResult.cs
- DesignerImageAdapter.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- XamlSerializationHelper.cs
- SweepDirectionValidation.cs
- InternalPolicyElement.cs
- OutKeywords.cs
- DesignerVerbToolStripMenuItem.cs
- GlyphShapingProperties.cs
- Int32CollectionValueSerializer.cs
- HttpApplicationFactory.cs
- Helpers.cs
- PartialTrustVisibleAssemblyCollection.cs
- WebBrowserHelper.cs
- RangeBase.cs
- WebPartDescriptionCollection.cs
- TextServicesDisplayAttribute.cs
- SortedList.cs
- CharUnicodeInfo.cs
- WorkflowInstanceExtensionCollection.cs
- HttpCacheVary.cs
- ObservableCollection.cs
- DbParameterHelper.cs
- GenericAuthenticationEventArgs.cs
- CannotUnloadAppDomainException.cs
- ParseElement.cs
- HttpsChannelListener.cs
- ArgumentNullException.cs
- mediaeventargs.cs
- DbProviderFactories.cs
- LinearGradientBrush.cs
- DbParameterHelper.cs
- PriorityQueue.cs
- ADMembershipProvider.cs
- ConfigsHelper.cs
- MethodBuilderInstantiation.cs
- CodeAttributeArgumentCollection.cs
- XmlNavigatorStack.cs
- MaterialGroup.cs
- TreeViewDesigner.cs
- BitmapDecoder.cs
- ToolboxBitmapAttribute.cs
- SoapTransportImporter.cs
- FileDialogCustomPlacesCollection.cs
- InnerItemCollectionView.cs
- ObjectNavigationPropertyMapping.cs
- ThousandthOfEmRealDoubles.cs
- Part.cs
- StateElement.cs
- ResXBuildProvider.cs
- CustomError.cs
- XPathNodeIterator.cs
- GPRECTF.cs
- SaveRecipientRequest.cs
- AppSettingsSection.cs
- DataGridPageChangedEventArgs.cs
- ConsoleTraceListener.cs
- SqlRecordBuffer.cs
- _NegoStream.cs
- Decimal.cs
- WorkflowApplicationTerminatedException.cs
- DrawToolTipEventArgs.cs
- BaseCodeDomTreeGenerator.cs
- HttpAsyncResult.cs
- SqlUtil.cs
- Cursor.cs
- NonBatchDirectoryCompiler.cs
- XpsImage.cs
- BackStopAuthenticationModule.cs
- XmlDocumentType.cs