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
- CompilerParameters.cs
- Validator.cs
- ToolboxDataAttribute.cs
- MetadataPropertyAttribute.cs
- RelationHandler.cs
- ToolboxItemFilterAttribute.cs
- Stackframe.cs
- TextOnlyOutput.cs
- Monitor.cs
- MethodExpr.cs
- AppSecurityManager.cs
- MediaElement.cs
- TokenBasedSetEnumerator.cs
- MergePropertyDescriptor.cs
- PrimarySelectionAdorner.cs
- TextMetrics.cs
- MonitorWrapper.cs
- TypeEnumerableViewSchema.cs
- ScrollItemPattern.cs
- ShaperBuffers.cs
- PerformanceCounterPermission.cs
- DataColumnMapping.cs
- DoubleAnimationClockResource.cs
- Dump.cs
- MessageSecurityProtocol.cs
- ObjectDataSourceStatusEventArgs.cs
- DBDataPermissionAttribute.cs
- HierarchicalDataSourceControl.cs
- PersonalizationProviderCollection.cs
- StylusPointProperties.cs
- TrustSection.cs
- WebConfigurationManager.cs
- SiteMapNode.cs
- IdentityManager.cs
- DataServiceRequestException.cs
- prompt.cs
- SequenceDesigner.cs
- HMACSHA256.cs
- XamlToRtfWriter.cs
- XPathSingletonIterator.cs
- LicFileLicenseProvider.cs
- SymbolTable.cs
- FrameworkObject.cs
- Transform.cs
- FrameworkRichTextComposition.cs
- TabControlEvent.cs
- DateTimeParse.cs
- WindowClosedEventArgs.cs
- NamespaceInfo.cs
- RightsManagementUser.cs
- EntityDataReader.cs
- RegistrationServices.cs
- TabItemAutomationPeer.cs
- CapabilitiesRule.cs
- ApplyImportsAction.cs
- DataGridTextColumn.cs
- TypeBuilder.cs
- XPathCompileException.cs
- BidPrivateBase.cs
- AttributeProviderAttribute.cs
- ActiveXHost.cs
- DataGridViewCellFormattingEventArgs.cs
- TrackingStringDictionary.cs
- DependencyObject.cs
- GroupQuery.cs
- BamlRecordHelper.cs
- BulletChrome.cs
- PeerNearMe.cs
- DoubleLinkListEnumerator.cs
- HitTestWithGeometryDrawingContextWalker.cs
- Process.cs
- Logging.cs
- WebRequestModuleElement.cs
- CryptoApi.cs
- TraversalRequest.cs
- ContextMarshalException.cs
- ModelItemCollection.cs
- AuthenticateEventArgs.cs
- AuthorizationRuleCollection.cs
- DataReceivedEventArgs.cs
- FileDataSourceCache.cs
- TypeToTreeConverter.cs
- BaseHashHelper.cs
- DataGridRowClipboardEventArgs.cs
- TextDecorationCollectionConverter.cs
- HttpListenerResponse.cs
- SignedPkcs7.cs
- TextBreakpoint.cs
- ComplusEndpointConfigContainer.cs
- Interlocked.cs
- UrlAuthorizationModule.cs
- ContractAdapter.cs
- UserControlCodeDomTreeGenerator.cs
- DataBoundControlAdapter.cs
- KeyGesture.cs
- ValueQuery.cs
- DragDrop.cs
- PenThread.cs
- Win32Interop.cs
- GacUtil.cs