Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlTableCellCollection.cs / 1 / HtmlTableCellCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * HtmlTableCellCollection.cs * * Copyright (c) 2000 Microsoft Corporation */ namespace System.Web.UI.HtmlControls { using System.Runtime.InteropServices; using System; using System.Collections; using System.Web; using System.Web.UI; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class HtmlTableCellCollection : ICollection { ////// The ///contains all of the table /// cells, both <td> and <th> elements, found within an /// server control. /// /// /// private HtmlTableRow owner; internal HtmlTableCellCollection(HtmlTableRow owner) { this.owner = owner; } /* * The number of cells in the row. */ ////// public int Count { get { if (owner.HasControls()) return owner.Controls.Count; return 0; } } ////// Gets the number of items in the ////// collection. /// /// public HtmlTableCell this[int index] { get { return(HtmlTableCell)owner.Controls[index]; } } ////// Gets an ///control from an /// control thorugh the cell's ordinal index value. /// /// public void Add(HtmlTableCell cell) { Insert(-1, cell); } ////// Adds the specified ///control to the end of the /// collection. /// /// public void Insert(int index, HtmlTableCell cell) { owner.Controls.AddAt(index, cell); } ////// Adds an ///control to a specified location in the /// collection. /// /// public void Clear() { if (owner.HasControls()) owner.Controls.Clear(); } /* * Returns an enumerator that enumerates over the cells in a table row in order. */ ////// Deletes all ////// controls from the collection. /// /// public IEnumerator GetEnumerator() { return owner.Controls.GetEnumerator(); } ////// public void CopyTo(Array array, int index) { for (IEnumerator e = this.GetEnumerator(); e.MoveNext();) array.SetValue(e.Current, index++); } ////// public Object SyncRoot { get { return this;} } ////// public bool IsReadOnly { get { return false;} } ////// public bool IsSynchronized { get { return false;} } ////// public void Remove(HtmlTableCell cell) { owner.Controls.Remove(cell); } ////// Deletes the specified ///control from the /// collection. /// /// public void RemoveAt(int index) { owner.Controls.RemoveAt(index); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Deletes the ///control at the specified index /// location from the collection. /// // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * HtmlTableCellCollection.cs * * Copyright (c) 2000 Microsoft Corporation */ namespace System.Web.UI.HtmlControls { using System.Runtime.InteropServices; using System; using System.Collections; using System.Web; using System.Web.UI; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class HtmlTableCellCollection : ICollection { ////// The ///contains all of the table /// cells, both <td> and <th> elements, found within an /// server control. /// /// /// private HtmlTableRow owner; internal HtmlTableCellCollection(HtmlTableRow owner) { this.owner = owner; } /* * The number of cells in the row. */ ////// public int Count { get { if (owner.HasControls()) return owner.Controls.Count; return 0; } } ////// Gets the number of items in the ////// collection. /// /// public HtmlTableCell this[int index] { get { return(HtmlTableCell)owner.Controls[index]; } } ////// Gets an ///control from an /// control thorugh the cell's ordinal index value. /// /// public void Add(HtmlTableCell cell) { Insert(-1, cell); } ////// Adds the specified ///control to the end of the /// collection. /// /// public void Insert(int index, HtmlTableCell cell) { owner.Controls.AddAt(index, cell); } ////// Adds an ///control to a specified location in the /// collection. /// /// public void Clear() { if (owner.HasControls()) owner.Controls.Clear(); } /* * Returns an enumerator that enumerates over the cells in a table row in order. */ ////// Deletes all ////// controls from the collection. /// /// public IEnumerator GetEnumerator() { return owner.Controls.GetEnumerator(); } ////// public void CopyTo(Array array, int index) { for (IEnumerator e = this.GetEnumerator(); e.MoveNext();) array.SetValue(e.Current, index++); } ////// public Object SyncRoot { get { return this;} } ////// public bool IsReadOnly { get { return false;} } ////// public bool IsSynchronized { get { return false;} } ////// public void Remove(HtmlTableCell cell) { owner.Controls.Remove(cell); } ////// Deletes the specified ///control from the /// collection. /// /// public void RemoveAt(int index) { owner.Controls.RemoveAt(index); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Deletes the ///control at the specified index /// location from the collection. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BooleanStorage.cs
- Ipv6Element.cs
- ObjectStateManager.cs
- FormatVersion.cs
- EncryptedPackageFilter.cs
- UnsafeNativeMethods.cs
- ImageMapEventArgs.cs
- Win32SafeHandles.cs
- BaseDataListDesigner.cs
- HTMLTextWriter.cs
- DelegateArgumentReference.cs
- WmlObjectListAdapter.cs
- DispatcherFrame.cs
- BindingObserver.cs
- SqlUDTStorage.cs
- FutureFactory.cs
- ResourceContainer.cs
- CompilerWrapper.cs
- SymDocumentType.cs
- SqlLiftWhereClauses.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- _Rfc2616CacheValidators.cs
- ClosableStream.cs
- SqlTypesSchemaImporter.cs
- Drawing.cs
- AppDomain.cs
- ByteStorage.cs
- ParameterInfo.cs
- FormViewDeletedEventArgs.cs
- TypeConverterHelper.cs
- Soap.cs
- Oid.cs
- TimeZoneInfo.cs
- CompilerHelpers.cs
- WebBrowsableAttribute.cs
- FilterUserControlBase.cs
- DbConnectionOptions.cs
- DataGridViewTextBoxCell.cs
- SqlAliasesReferenced.cs
- XmlHierarchyData.cs
- MapPathBasedVirtualPathProvider.cs
- CodeSnippetExpression.cs
- SizeConverter.cs
- DataSourceConverter.cs
- AnnotationStore.cs
- CodeDomDecompiler.cs
- Crc32.cs
- DuplicateWaitObjectException.cs
- DbException.cs
- behaviorssection.cs
- ActiveDocumentEvent.cs
- ContextProperty.cs
- MetadataReference.cs
- AccessKeyManager.cs
- AjaxFrameworkAssemblyAttribute.cs
- FormsAuthenticationUser.cs
- mediaclock.cs
- FormsAuthenticationCredentials.cs
- Rect3DValueSerializer.cs
- SafeProcessHandle.cs
- SqlProviderUtilities.cs
- PrivateFontCollection.cs
- Constants.cs
- XmlDomTextWriter.cs
- WindowsTab.cs
- PopupRoot.cs
- AsymmetricCryptoHandle.cs
- WindowsAltTab.cs
- AspCompat.cs
- OleDbConnection.cs
- connectionpool.cs
- CellParagraph.cs
- Misc.cs
- Transform.cs
- Base64Stream.cs
- TileBrush.cs
- EventBuilder.cs
- Dynamic.cs
- GridViewAutoFormat.cs
- ScrollEvent.cs
- RsaSecurityTokenAuthenticator.cs
- PersianCalendar.cs
- DataListComponentEditor.cs
- ToolBarButton.cs
- TextRunCacheImp.cs
- Simplifier.cs
- EncryptedType.cs
- FontEditor.cs
- SchemaElementLookUpTableEnumerator.cs
- ChannelManagerBase.cs
- PathFigureCollection.cs
- RightsManagementEncryptionTransform.cs
- ItemCheckEvent.cs
- TransformationRules.cs
- ComEventsHelper.cs
- PagerStyle.cs
- BufferModesCollection.cs
- ProviderMetadataCachedInformation.cs
- GlobalizationSection.cs
- CatalogZoneBase.cs