Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / RepeaterItem.cs / 1 / 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; using System.Security.Permissions; ////// [ ToolboxItem(false) ] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProfileWorkflowElement.cs
- IndicFontClient.cs
- BorderSidesEditor.cs
- SystemIPGlobalStatistics.cs
- CodeAttributeDeclarationCollection.cs
- ToolboxComponentsCreatedEventArgs.cs
- XmlReader.cs
- TemplateComponentConnector.cs
- DataTableTypeConverter.cs
- CriticalHandle.cs
- ICspAsymmetricAlgorithm.cs
- WinInet.cs
- TimeIntervalCollection.cs
- XPathExpr.cs
- ClickablePoint.cs
- SafeCancelMibChangeNotify.cs
- Timer.cs
- BindingExpression.cs
- MenuRendererClassic.cs
- EndPoint.cs
- CodeTypeDelegate.cs
- RtfToXamlLexer.cs
- WebPartEditorCancelVerb.cs
- XmlSchemaValidationException.cs
- SelectedDatesCollection.cs
- listitem.cs
- XpsFilter.cs
- mactripleDES.cs
- GregorianCalendarHelper.cs
- XPathDescendantIterator.cs
- ImageFormatConverter.cs
- Base64Stream.cs
- AxisAngleRotation3D.cs
- TypeExtension.cs
- EncoderBestFitFallback.cs
- XmlSchemaAny.cs
- WeakReferenceKey.cs
- RSACryptoServiceProvider.cs
- UidPropertyAttribute.cs
- XmlSerializerNamespaces.cs
- KerberosSecurityTokenAuthenticator.cs
- ObjectStateFormatter.cs
- ParallelTimeline.cs
- BrowserCapabilitiesFactoryBase.cs
- Vertex.cs
- SiteMap.cs
- WindowsRichEdit.cs
- PreservationFileWriter.cs
- WebSysDefaultValueAttribute.cs
- MDIClient.cs
- TextEditorSpelling.cs
- SmiMetaData.cs
- CurrentChangingEventArgs.cs
- SamlAttribute.cs
- DataGridViewButtonColumn.cs
- MenuItemBinding.cs
- Main.cs
- SoapSchemaExporter.cs
- FixedSOMTableCell.cs
- shaper.cs
- SqlSelectClauseBuilder.cs
- TabItemWrapperAutomationPeer.cs
- Html32TextWriter.cs
- IndentedTextWriter.cs
- Viewport3DVisual.cs
- LocalizedNameDescriptionPair.cs
- PropertyDescriptorComparer.cs
- DocumentPageView.cs
- DocumentPageView.cs
- ExtenderProvidedPropertyAttribute.cs
- WorkflowDesignerColors.cs
- XmlSchemaObjectTable.cs
- ParentUndoUnit.cs
- WebPartConnectVerb.cs
- ColumnResizeUndoUnit.cs
- HMACMD5.cs
- _ScatterGatherBuffers.cs
- MsmqTransportReceiveParameters.cs
- DataFormats.cs
- ExpressionNormalizer.cs
- TextContainerHelper.cs
- AutomationPattern.cs
- Rijndael.cs
- ParenthesizePropertyNameAttribute.cs
- ScriptManagerProxy.cs
- Identity.cs
- DesigntimeLicenseContextSerializer.cs
- InternalCache.cs
- HttpResponse.cs
- OleDbFactory.cs
- ReceiveCompletedEventArgs.cs
- ParameterCollection.cs
- EndpointAddressElementBase.cs
- UserControlBuildProvider.cs
- XamlUtilities.cs
- SeparatorAutomationPeer.cs
- Comparer.cs
- LinqDataSourceHelper.cs
- BindingNavigatorDesigner.cs
- SubstitutionList.cs