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
- DynamicValidatorEventArgs.cs
- StringFunctions.cs
- EncryptedKeyIdentifierClause.cs
- shaperfactoryquerycacheentry.cs
- OperatingSystem.cs
- ProgressPage.cs
- XmlDataSourceView.cs
- ObjectComplexPropertyMapping.cs
- SystemIPv6InterfaceProperties.cs
- TagElement.cs
- COM2PropertyBuilderUITypeEditor.cs
- StreamHelper.cs
- DataGridColumnReorderingEventArgs.cs
- TypeUnloadedException.cs
- EntityDataSourceStatementEditorForm.cs
- ListViewInsertedEventArgs.cs
- MdiWindowListStrip.cs
- DateBoldEvent.cs
- ExcludeFromCodeCoverageAttribute.cs
- ValidationErrorEventArgs.cs
- BitmapMetadataEnumerator.cs
- MDIClient.cs
- ArrayWithOffset.cs
- EventTask.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- ApplicationFileParser.cs
- ItemChangedEventArgs.cs
- ToggleProviderWrapper.cs
- RightsManagementEncryptedStream.cs
- MediaCommands.cs
- TokenizerHelper.cs
- KernelTypeValidation.cs
- GradientBrush.cs
- DrawingContextDrawingContextWalker.cs
- ListBindingConverter.cs
- MinimizableAttributeTypeConverter.cs
- TemplateKeyConverter.cs
- DigestTraceRecordHelper.cs
- FormViewUpdateEventArgs.cs
- HelpProvider.cs
- StorageComplexPropertyMapping.cs
- Ipv6Element.cs
- DataGridViewCellStyle.cs
- CachedFontFace.cs
- StringUtil.cs
- NaturalLanguageHyphenator.cs
- ControlIdConverter.cs
- DbConnectionInternal.cs
- PackWebRequestFactory.cs
- TextPointerBase.cs
- XamlInterfaces.cs
- Rules.cs
- controlskin.cs
- SynchronizedInputHelper.cs
- XmlSchemaComplexContentRestriction.cs
- PrivacyNoticeBindingElementImporter.cs
- DataGridViewImageColumn.cs
- OracleRowUpdatedEventArgs.cs
- OpenTypeLayout.cs
- DataService.cs
- HiddenFieldPageStatePersister.cs
- ConnectionsZone.cs
- ViewGenResults.cs
- GroupBoxRenderer.cs
- StringValueConverter.cs
- TextTreeRootNode.cs
- WebPartVerbCollection.cs
- BamlRecordReader.cs
- sqlpipe.cs
- Freezable.cs
- ScriptResourceMapping.cs
- PropertyMap.cs
- DataGridViewButtonCell.cs
- DetailsViewUpdatedEventArgs.cs
- PropertyInformation.cs
- WCFServiceClientProxyGenerator.cs
- unsafeIndexingFilterStream.cs
- InternalSafeNativeMethods.cs
- Compilation.cs
- LinkClickEvent.cs
- StringUtil.cs
- IriParsingElement.cs
- Soap.cs
- OleDbConnectionFactory.cs
- ServiceDescriptionSerializer.cs
- MemberAssignment.cs
- Range.cs
- WindowsListViewItem.cs
- XmlSequenceWriter.cs
- MiniLockedBorderGlyph.cs
- NaturalLanguageHyphenator.cs
- SqlDataSourceQuery.cs
- WebPartActionVerb.cs
- TypeSource.cs
- XmlDownloadManager.cs
- AssemblyName.cs
- IndexedSelectQueryOperator.cs
- WebPartCloseVerb.cs
- RawStylusInputReport.cs
- GeometryConverter.cs