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
- ScrollBarAutomationPeer.cs
- OpCodes.cs
- XmlValueConverter.cs
- TypeElement.cs
- ObjectKeyFrameCollection.cs
- XPathNodePointer.cs
- CompiledQuery.cs
- complextypematerializer.cs
- MetadataPropertyvalue.cs
- ObjectToken.cs
- HtmlWindowCollection.cs
- AnnotationComponentManager.cs
- SHA1CryptoServiceProvider.cs
- UserNamePasswordValidator.cs
- MatrixTransform3D.cs
- SvcMapFileSerializer.cs
- KeyedQueue.cs
- PackageController.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- DeclaredTypeElement.cs
- TraversalRequest.cs
- PropVariant.cs
- Message.cs
- EntityCommand.cs
- Sequence.cs
- SchemaImporterExtensionsSection.cs
- FontFamily.cs
- AttachmentCollection.cs
- EntityClientCacheEntry.cs
- Monitor.cs
- TransformConverter.cs
- AppSettingsExpressionBuilder.cs
- ShutDownListener.cs
- ContentValidator.cs
- FormatException.cs
- SpellerInterop.cs
- ToolStripOverflowButton.cs
- SelectionHighlightInfo.cs
- ClientSettingsProvider.cs
- DbConnectionOptions.cs
- WmlValidationSummaryAdapter.cs
- TextureBrush.cs
- LazyTextWriterCreator.cs
- SqlColumnizer.cs
- WmfPlaceableFileHeader.cs
- ListControlConvertEventArgs.cs
- ITextView.cs
- ElapsedEventArgs.cs
- ShimAsPublicXamlType.cs
- RepeatButtonAutomationPeer.cs
- SelectionProcessor.cs
- PointCollection.cs
- CopyOnWriteList.cs
- EventSourceCreationData.cs
- PeerNameResolver.cs
- TableLayoutSettings.cs
- ToolStripDropDownClosingEventArgs.cs
- EDesignUtil.cs
- ItemCollection.cs
- ADMembershipProvider.cs
- StylusDevice.cs
- _StreamFramer.cs
- Point.cs
- RSAProtectedConfigurationProvider.cs
- OfTypeExpression.cs
- ColumnHeaderCollectionEditor.cs
- DBSqlParserTableCollection.cs
- ChannelCacheSettings.cs
- ByteAnimationBase.cs
- ParserExtension.cs
- BaseTemplatedMobileComponentEditor.cs
- OdbcParameter.cs
- PageCodeDomTreeGenerator.cs
- ExpressionBuilderContext.cs
- TextServicesCompartment.cs
- ISCIIEncoding.cs
- LocalizedNameDescriptionPair.cs
- PerfCounterSection.cs
- CharUnicodeInfo.cs
- ConfigXmlWhitespace.cs
- Collection.cs
- MeasureData.cs
- SrgsGrammar.cs
- SqlEnums.cs
- DesignerGeometryHelper.cs
- SQLRoleProvider.cs
- DocumentXmlWriter.cs
- ValueUtilsSmi.cs
- DoubleLink.cs
- LinearKeyFrames.cs
- Renderer.cs
- SeekableReadStream.cs
- Cell.cs
- MouseDevice.cs
- KeyMatchBuilder.cs
- ThaiBuddhistCalendar.cs
- SoapHeaderException.cs
- InstanceDescriptor.cs
- ViewStateModeByIdAttribute.cs
- DataServiceStreamResponse.cs