Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }/// 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
- GridViewItemAutomationPeer.cs
- MessageSecurityOverTcpElement.cs
- KeyEventArgs.cs
- UTF32Encoding.cs
- DataGridViewSelectedRowCollection.cs
- dsa.cs
- ListViewPagedDataSource.cs
- Literal.cs
- Model3DCollection.cs
- MailHeaderInfo.cs
- Tokenizer.cs
- MailHeaderInfo.cs
- ConfigurationLocation.cs
- WorkItem.cs
- UserPreference.cs
- InstalledFontCollection.cs
- RichTextBox.cs
- FileSystemInfo.cs
- LinkConverter.cs
- WebServiceResponse.cs
- UnauthorizedAccessException.cs
- Predicate.cs
- RSAPKCS1SignatureFormatter.cs
- ToolboxBitmapAttribute.cs
- SchemaMapping.cs
- DesignerSerializationOptionsAttribute.cs
- SmiEventSink_DeferedProcessing.cs
- UrlPath.cs
- ConnectionPointGlyph.cs
- DefaultParameterValueAttribute.cs
- CriticalHandle.cs
- XmlSchemaChoice.cs
- ReadOnlyMetadataCollection.cs
- IisTraceWebEventProvider.cs
- TextFormatterHost.cs
- ApplicationFileCodeDomTreeGenerator.cs
- TextEvent.cs
- DelegateSerializationHolder.cs
- DataKeyPropertyAttribute.cs
- BuildManager.cs
- CapabilitiesUse.cs
- Transform3D.cs
- DataGridViewCellCollection.cs
- SerialErrors.cs
- DbTypeMap.cs
- Point3DKeyFrameCollection.cs
- CodeSnippetStatement.cs
- Vector3dCollection.cs
- SafeFileMappingHandle.cs
- TreeNodeSelectionProcessor.cs
- PointConverter.cs
- BoolExpressionVisitors.cs
- ParseChildrenAsPropertiesAttribute.cs
- AuthorizationSection.cs
- CheckBoxBaseAdapter.cs
- ScaleTransform.cs
- PersonalizationState.cs
- WorkflowItemsPresenter.cs
- FileChangesMonitor.cs
- SeverityFilter.cs
- HandlerBase.cs
- SimpleExpression.cs
- ChtmlFormAdapter.cs
- Pkcs7Recipient.cs
- Scheduler.cs
- CommandExpr.cs
- PolyLineSegment.cs
- OletxVolatileEnlistment.cs
- OledbConnectionStringbuilder.cs
- ResourceReferenceExpressionConverter.cs
- SQLInt64Storage.cs
- RemoteWebConfigurationHostServer.cs
- OuterGlowBitmapEffect.cs
- XmlAnyElementAttributes.cs
- ConvertEvent.cs
- CTreeGenerator.cs
- ToolStripItemCollection.cs
- ProcessThread.cs
- XmlSerializationReader.cs
- ReturnValue.cs
- SiteMembershipCondition.cs
- CodeArrayIndexerExpression.cs
- smtppermission.cs
- ExternalException.cs
- GuidTagList.cs
- MarkupWriter.cs
- HttpFileCollection.cs
- MdiWindowListStrip.cs
- Token.cs
- RunWorkerCompletedEventArgs.cs
- RichTextBoxAutomationPeer.cs
- ThreadStateException.cs
- ImageConverter.cs
- KeyValueConfigurationCollection.cs
- WebPartChrome.cs
- CardSpaceException.cs
- WindowsListViewScroll.cs
- GeneralTransform3DGroup.cs
- XsltContext.cs
- NativeMethods.cs