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
- TypePropertyEditor.cs
- SqlServer2KCompatibilityAnnotation.cs
- XsdBuildProvider.cs
- Logging.cs
- TypeSystem.cs
- ConditionalAttribute.cs
- Int32CollectionConverter.cs
- File.cs
- TreeViewItemAutomationPeer.cs
- UserNameSecurityTokenAuthenticator.cs
- XslCompiledTransform.cs
- TypeToArgumentTypeConverter.cs
- Model3D.cs
- GorillaCodec.cs
- PrivacyNoticeBindingElement.cs
- WebReferencesBuildProvider.cs
- RuntimeConfigurationRecord.cs
- _NtlmClient.cs
- DataGridViewCellStyle.cs
- D3DImage.cs
- XmlNavigatorStack.cs
- DbCommandDefinition.cs
- SqlPersonalizationProvider.cs
- TextChange.cs
- SafeSystemMetrics.cs
- Roles.cs
- SqlColumnizer.cs
- ButtonBase.cs
- ContextDataSource.cs
- PageAdapter.cs
- VisualStyleElement.cs
- TypeDescriptor.cs
- XmlLanguage.cs
- OdbcStatementHandle.cs
- DataGridViewBindingCompleteEventArgs.cs
- _ProxyRegBlob.cs
- CodeTypeParameter.cs
- ServicesUtilities.cs
- XmlReader.cs
- Internal.cs
- PageCache.cs
- LookupNode.cs
- TextOutput.cs
- StreamUpgradeAcceptor.cs
- Encoder.cs
- WorkflowMarkupSerializer.cs
- SchemaCollectionPreprocessor.cs
- NamedPipeTransportBindingElement.cs
- XmlSchemaExternal.cs
- RadioButton.cs
- _IPv6Address.cs
- ListSourceHelper.cs
- ComponentResourceManager.cs
- DaylightTime.cs
- DataControlImageButton.cs
- RightsManagementPermission.cs
- HtmlValidatorAdapter.cs
- DataGridCellAutomationPeer.cs
- IsolatedStorage.cs
- XmlCharType.cs
- ListChangedEventArgs.cs
- SqlPersonalizationProvider.cs
- _ConnectOverlappedAsyncResult.cs
- ListItemConverter.cs
- XPathNodeHelper.cs
- SubpageParagraph.cs
- HtmlMeta.cs
- DataGridViewTextBoxCell.cs
- TableLayoutRowStyleCollection.cs
- ExtendedTransformFactory.cs
- ProjectionCamera.cs
- Schema.cs
- Function.cs
- CellPartitioner.cs
- FontUnitConverter.cs
- SQLMoney.cs
- OutputScopeManager.cs
- XmlSortKey.cs
- VisualBrush.cs
- MapPathBasedVirtualPathProvider.cs
- ErrorHandler.cs
- Vertex.cs
- SystemResources.cs
- RoutedUICommand.cs
- ListSortDescriptionCollection.cs
- TextFormatter.cs
- Image.cs
- ConvertEvent.cs
- ipaddressinformationcollection.cs
- CharEnumerator.cs
- RoleBoolean.cs
- SerializationInfoEnumerator.cs
- Char.cs
- VisemeEventArgs.cs
- Package.cs
- BaseTemplateBuildProvider.cs
- DataSourceProvider.cs
- ObjectDataSourceSelectingEventArgs.cs
- SingleConverter.cs
- FieldDescriptor.cs