Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / DataGridItemCollection.cs / 1 / DataGridItemCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI.WebControls { using System; using System.Collections; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class DataGridItemCollection : ICollection { private ArrayList items; ///Represents the collection of ///objects. /// public DataGridItemCollection(ArrayList items) { this.items = items; } ///Initializes a new instance of the ///class. /// public int Count { get { return items.Count; } } ///Gets the number of items in the collection. This property is read-only. ////// public bool IsReadOnly { get { return false; } } ///Gets a value that specifies whether items in the ///can be /// modified. This property is read-only. /// public bool IsSynchronized { get { return false; } } ///Gets a value that indicates whether the ///is /// thread-safe. This property is read-only. /// public object SyncRoot { get { return this; } } ///Gets the object used to synchronize access to the collection. This property is read-only. ////// public DataGridItem this[int index] { get { return(DataGridItem)items[index]; } } ///Gets a ///at the specified index in the /// collection. /// public void CopyTo(Array array, int index) { for (IEnumerator e = this.GetEnumerator(); e.MoveNext();) array.SetValue(e.Current, index++); } ///Copies the contents of the entire collection into an ///appending /// at the specified index of the . /// public IEnumerator GetEnumerator() { return items.GetEnumerator(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.Creates an enumerator for the ///used to /// iterate through the collection.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LinkArea.cs
- WizardPanel.cs
- SetStoryboardSpeedRatio.cs
- Compiler.cs
- FormViewDeleteEventArgs.cs
- MutexSecurity.cs
- ScriptingSectionGroup.cs
- TypefaceCollection.cs
- MediaSystem.cs
- _RequestLifetimeSetter.cs
- SkewTransform.cs
- PersonalizablePropertyEntry.cs
- ProcessHostConfigUtils.cs
- ConfigurationElement.cs
- BridgeDataRecord.cs
- HostedElements.cs
- DataBoundControlHelper.cs
- RegexParser.cs
- FileDialogCustomPlace.cs
- NestPullup.cs
- SspiHelper.cs
- SimpleType.cs
- DataGridViewColumnStateChangedEventArgs.cs
- Sql8ExpressionRewriter.cs
- XslCompiledTransform.cs
- IsolatedStorageFilePermission.cs
- _ScatterGatherBuffers.cs
- AccessDataSourceView.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- PropertyPathConverter.cs
- RunInstallerAttribute.cs
- ValidationErrorInfo.cs
- XsltOutput.cs
- StateMachineAction.cs
- TdsParserHelperClasses.cs
- TransformPattern.cs
- TreeViewAutomationPeer.cs
- UseManagedPresentationBindingElementImporter.cs
- HtmlControlPersistable.cs
- MediaScriptCommandRoutedEventArgs.cs
- WarningException.cs
- XmlSequenceWriter.cs
- Function.cs
- SerialPinChanges.cs
- SqlCommand.cs
- FormatterServices.cs
- Membership.cs
- GridViewCommandEventArgs.cs
- RuleEngine.cs
- FontInfo.cs
- Vars.cs
- BamlTreeUpdater.cs
- CalendarTable.cs
- _emptywebproxy.cs
- CommonXSendMessage.cs
- HtmlContainerControl.cs
- XmlResolver.cs
- DbConnectionStringBuilder.cs
- DesignerObject.cs
- IfAction.cs
- configsystem.cs
- SecureUICommand.cs
- PageRanges.cs
- TextPenaltyModule.cs
- SQLUtility.cs
- XPathExpr.cs
- SecurityElementBase.cs
- ObjectResult.cs
- PerformanceCounterPermissionEntryCollection.cs
- AudioFormatConverter.cs
- StateManagedCollection.cs
- CompiledIdentityConstraint.cs
- EventWaitHandle.cs
- ForceCopyBuildProvider.cs
- AppDomainManager.cs
- OutputCacheProfile.cs
- FixedSOMSemanticBox.cs
- String.cs
- SharedMemory.cs
- WebPartZone.cs
- WindowsListView.cs
- Container.cs
- TextServicesProperty.cs
- XmlSchemaDatatype.cs
- BaseTemplateBuildProvider.cs
- View.cs
- CompoundFileStreamReference.cs
- FormatSettings.cs
- ScrollViewerAutomationPeer.cs
- IsolationInterop.cs
- Container.cs
- _HTTPDateParse.cs
- ByteStack.cs
- AncillaryOps.cs
- MediaContextNotificationWindow.cs
- DataBindingValueUIHandler.cs
- MissingMemberException.cs
- CheckBoxFlatAdapter.cs
- CustomBindingElementCollection.cs
- ComponentCollection.cs