Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- Utility.cs
- Geometry3D.cs
- Style.cs
- SubtreeProcessor.cs
- DataServiceProviderMethods.cs
- SqlCacheDependencySection.cs
- Vector3DCollection.cs
- SimpleFileLog.cs
- ColorKeyFrameCollection.cs
- DataSet.cs
- DeclarativeCatalogPart.cs
- CodeObject.cs
- OdbcTransaction.cs
- RtfControlWordInfo.cs
- CodeNamespaceImport.cs
- VirtualDirectoryMapping.cs
- WinInetCache.cs
- PrintPreviewDialog.cs
- WpfXamlLoader.cs
- PresentationAppDomainManager.cs
- LocalizabilityAttribute.cs
- CodeDefaultValueExpression.cs
- CatalogPart.cs
- LabelEditEvent.cs
- HeaderPanel.cs
- RefreshPropertiesAttribute.cs
- CodeGotoStatement.cs
- PasswordPropertyTextAttribute.cs
- DataGridViewAccessibleObject.cs
- HostingEnvironment.cs
- UxThemeWrapper.cs
- StrokeSerializer.cs
- StylusEditingBehavior.cs
- OnOperation.cs
- StrokeSerializer.cs
- CollectionViewProxy.cs
- TimeManager.cs
- CollectionBuilder.cs
- ReflectionUtil.cs
- ResourcesBuildProvider.cs
- ScrollItemPattern.cs
- AutoResizedEvent.cs
- Transform3D.cs
- UniqueConstraint.cs
- SystemNetHelpers.cs
- CompareValidator.cs
- OptimizerPatterns.cs
- SizeAnimation.cs
- FaultPropagationQuery.cs
- NegationPusher.cs
- StringCollectionMarkupSerializer.cs
- ViewStateException.cs
- CmsInterop.cs
- FreezableDefaultValueFactory.cs
- DataRecordObjectView.cs
- HiddenField.cs
- WebPartDisplayModeCollection.cs
- RowParagraph.cs
- ScrollPattern.cs
- DataColumnMapping.cs
- TableRowCollection.cs
- DataGridComponentEditor.cs
- Frame.cs
- UInt32Storage.cs
- InstancePersistenceContext.cs
- PositiveTimeSpanValidator.cs
- KeyValueInternalCollection.cs
- TextServicesHost.cs
- WebPart.cs
- StoreUtilities.cs
- TakeOrSkipQueryOperator.cs
- FamilyTypeface.cs
- RoleGroup.cs
- RoleService.cs
- NumberAction.cs
- LinkClickEvent.cs
- AuthenticatedStream.cs
- ObjectToken.cs
- TextSpanModifier.cs
- Constants.cs
- SerializationInfoEnumerator.cs
- EventLogLink.cs
- ListViewAutomationPeer.cs
- BamlReader.cs
- UdpAnnouncementEndpoint.cs
- CommandConverter.cs
- SQLSingleStorage.cs
- MatrixAnimationUsingPath.cs
- CorrelationKey.cs
- TriggerAction.cs
- XmlWrappingReader.cs
- GorillaCodec.cs
- LabelTarget.cs
- Dictionary.cs
- OrderedDictionaryStateHelper.cs
- HttpHandlerActionCollection.cs
- COM2PictureConverter.cs
- Zone.cs
- TextBlock.cs
- DataGridViewCellFormattingEventArgs.cs