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
- DuplexSecurityProtocolFactory.cs
- SafeFindHandle.cs
- UidManager.cs
- GeneralTransform.cs
- ErrorTableItemStyle.cs
- NetMsmqSecurityMode.cs
- ConfigurationSectionGroup.cs
- HttpModuleAction.cs
- EntityContainerEmitter.cs
- ISAPIRuntime.cs
- CompoundFileStorageReference.cs
- Aggregates.cs
- Point.cs
- HostedNamedPipeTransportManager.cs
- SemanticResolver.cs
- DataStreamFromComStream.cs
- AttributeCollection.cs
- localization.cs
- DelayedRegex.cs
- Viewport3DAutomationPeer.cs
- CustomAttribute.cs
- EntityDataSourceChangingEventArgs.cs
- ToolbarAUtomationPeer.cs
- controlskin.cs
- ResourcePool.cs
- QilSortKey.cs
- QueryAccessibilityHelpEvent.cs
- CopyAction.cs
- SqlBulkCopyColumnMapping.cs
- CorePropertiesFilter.cs
- coordinator.cs
- OuterGlowBitmapEffect.cs
- X509CertificateRecipientClientCredential.cs
- UnsafeMethods.cs
- DiscardableAttribute.cs
- HttpPostClientProtocol.cs
- CapabilitiesUse.cs
- DataRowView.cs
- PeoplePickerWrapper.cs
- ClockGroup.cs
- SpinWait.cs
- BitmapDecoder.cs
- TypeListConverter.cs
- WebCategoryAttribute.cs
- AlgoModule.cs
- Models.cs
- TextChangedEventArgs.cs
- XamlTemplateSerializer.cs
- filewebresponse.cs
- GridViewCommandEventArgs.cs
- MenuStrip.cs
- CommandConverter.cs
- ElementHostAutomationPeer.cs
- EnumBuilder.cs
- ByeOperation11AsyncResult.cs
- FormsAuthenticationTicket.cs
- BindingGroup.cs
- ADMembershipProvider.cs
- FormatSettings.cs
- RegexFCD.cs
- SharedConnectionWorkflowTransactionService.cs
- PackageDigitalSignature.cs
- FormatException.cs
- ModelItemCollection.cs
- AuthorizationRule.cs
- HtmlEncodedRawTextWriter.cs
- Math.cs
- Quad.cs
- RayHitTestParameters.cs
- KeyEvent.cs
- COM2ComponentEditor.cs
- OdbcTransaction.cs
- PolyLineSegment.cs
- HMACSHA512.cs
- Grid.cs
- FloaterParaClient.cs
- MemoryRecordBuffer.cs
- HighContrastHelper.cs
- EpmCustomContentSerializer.cs
- LinqDataSourceHelper.cs
- AttachedAnnotation.cs
- Socket.cs
- DataContractFormatAttribute.cs
- SchemaSetCompiler.cs
- SqlDataSourceCache.cs
- SpecialFolderEnumConverter.cs
- FastEncoder.cs
- WebPartConnectionsDisconnectVerb.cs
- TdsParser.cs
- Repeater.cs
- Setter.cs
- ObjectAssociationEndMapping.cs
- ElementNotEnabledException.cs
- DataGridColumnsPage.cs
- PermissionSetEnumerator.cs
- NavigateEvent.cs
- TemplatedMailWebEventProvider.cs
- FlowDocumentReader.cs
- itemelement.cs
- DocumentApplication.cs