Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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;
///
/// Represents the collection of objects.
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class DataGridItemCollection : ICollection {
private ArrayList items;
///
/// Initializes a new instance of the class.
///
public DataGridItemCollection(ArrayList items) {
this.items = items;
}
///
/// Gets the number of items in the collection. This property is read-only.
///
public int Count {
get {
return items.Count;
}
}
///
/// Gets a value that specifies whether items in the can be
/// modified. This property is read-only.
///
public bool IsReadOnly {
get {
return false;
}
}
///
/// Gets a value that indicates whether the is
/// thread-safe. This property is read-only.
///
public bool IsSynchronized {
get {
return false;
}
}
///
/// Gets the object used to synchronize access to the collection. This property is read-only.
///
public object SyncRoot {
get {
return this;
}
}
///
/// Gets a at the specified index in the
/// collection.
///
public DataGridItem this[int index] {
get {
return(DataGridItem)items[index];
}
}
///
/// Copies the contents of the entire collection into an appending
/// at the specified index of the .
///
public void CopyTo(Array array, int index) {
for (IEnumerator e = this.GetEnumerator(); e.MoveNext();)
array.SetValue(e.Current, index++);
}
///
/// Creates an enumerator for the used to
/// iterate through the collection.
///
public IEnumerator GetEnumerator() {
return items.GetEnumerator();
}
}
}
// 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.Collections;
using System.Security.Permissions;
///
/// Represents the collection of objects.
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class DataGridItemCollection : ICollection {
private ArrayList items;
///
/// Initializes a new instance of the class.
///
public DataGridItemCollection(ArrayList items) {
this.items = items;
}
///
/// Gets the number of items in the collection. This property is read-only.
///
public int Count {
get {
return items.Count;
}
}
///
/// Gets a value that specifies whether items in the can be
/// modified. This property is read-only.
///
public bool IsReadOnly {
get {
return false;
}
}
///
/// Gets a value that indicates whether the is
/// thread-safe. This property is read-only.
///
public bool IsSynchronized {
get {
return false;
}
}
///
/// Gets the object used to synchronize access to the collection. This property is read-only.
///
public object SyncRoot {
get {
return this;
}
}
///
/// Gets a at the specified index in the
/// collection.
///
public DataGridItem this[int index] {
get {
return(DataGridItem)items[index];
}
}
///
/// Copies the contents of the entire collection into an appending
/// at the specified index of the .
///
public void CopyTo(Array array, int index) {
for (IEnumerator e = this.GetEnumerator(); e.MoveNext();)
array.SetValue(e.Current, index++);
}
///
/// Creates an enumerator for the used to
/// iterate through the collection.
///
public IEnumerator GetEnumerator() {
return items.GetEnumerator();
}
}
}
// 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
- GPPOINT.cs
- XsltException.cs
- ZoomingMessageFilter.cs
- OdbcConnectionPoolProviderInfo.cs
- LinkLabel.cs
- XmlElementCollection.cs
- ProbeMatchesMessageCD1.cs
- AtomServiceDocumentSerializer.cs
- xmlglyphRunInfo.cs
- Logging.cs
- ReferencedCollectionType.cs
- ImportException.cs
- prompt.cs
- ClientConfigurationHost.cs
- OdbcConnectionOpen.cs
- sqlstateclientmanager.cs
- InvokePattern.cs
- DataGridViewRow.cs
- CrossAppDomainChannel.cs
- dataobject.cs
- PauseStoryboard.cs
- NetworkStream.cs
- MenuItem.cs
- ListControl.cs
- ToolStripDropDownClosingEventArgs.cs
- GridItemPattern.cs
- followingquery.cs
- MasterPageBuildProvider.cs
- SqlClientMetaDataCollectionNames.cs
- XmlWhitespace.cs
- ProfessionalColorTable.cs
- TraceLevelHelper.cs
- ToolStripButton.cs
- NumericUpDown.cs
- EventEntry.cs
- MediaScriptCommandRoutedEventArgs.cs
- WindowsListViewSubItem.cs
- Atom10FormatterFactory.cs
- EntityDesignerUtils.cs
- BitSet.cs
- UserPersonalizationStateInfo.cs
- ControlLocalizer.cs
- DispatchProxy.cs
- UpdatePanel.cs
- VectorAnimationUsingKeyFrames.cs
- IISMapPath.cs
- RuleSettings.cs
- AppDomainShutdownMonitor.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- PropertyDescriptorGridEntry.cs
- DomainUpDown.cs
- SpeechSeg.cs
- DrawingContextDrawingContextWalker.cs
- OciHandle.cs
- AuditLevel.cs
- SqlXmlStorage.cs
- UTF7Encoding.cs
- TextTreeFixupNode.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- DiscoveryServerProtocol.cs
- DBCommandBuilder.cs
- Composition.cs
- ParameterInfo.cs
- AsymmetricSignatureFormatter.cs
- LocalizationComments.cs
- MessagingDescriptionAttribute.cs
- Visitors.cs
- OleDbError.cs
- BaseValidator.cs
- SQLChars.cs
- CharEnumerator.cs
- CheckBoxPopupAdapter.cs
- ExceptionWrapper.cs
- DbParameterCollection.cs
- CapabilitiesPattern.cs
- ErasingStroke.cs
- CompiledELinqQueryState.cs
- ConditionalAttribute.cs
- FontStyleConverter.cs
- ControlAdapter.cs
- StreamWriter.cs
- UnaryExpressionHelper.cs
- ActivityExecutorDelegateInfo.cs
- TrackBarRenderer.cs
- TextBoxAutoCompleteSourceConverter.cs
- CopyOnWriteList.cs
- HebrewNumber.cs
- BufferedGraphicsManager.cs
- RequestCachePolicy.cs
- TableChangeProcessor.cs
- DockingAttribute.cs
- TokenFactoryBase.cs
- HealthMonitoringSectionHelper.cs
- DataPagerField.cs
- HtmlGenericControl.cs
- FixUpCollection.cs
- EventTrigger.cs
- DefaultSerializationProviderAttribute.cs
- PartBasedPackageProperties.cs
- PolyLineSegmentFigureLogic.cs