Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlTableRowCollection.cs / 1 / HtmlTableRowCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * HtmlTableRowCollection.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 HtmlTableRowCollection : ICollection { ////// The ///contains all /// of the table rows found within an /// server control. /// /// /// private HtmlTable owner; internal HtmlTableRowCollection(HtmlTable 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 HtmlTableRow this[int index] { get { return(HtmlTableRow)owner.Controls[index]; } } ////// Gets an ///control from an /// control thorugh the row's ordinal index value. /// /// public void Add(HtmlTableRow row) { Insert(-1, row); } ////// Adds the specified HtmlTableRow control to the end of the collection. /// ////// public void Insert(int index, HtmlTableRow row) { owner.Controls.AddAt(index, row); } ////// Adds an ///control to a specified /// location in the collection. /// /// public void Clear() { if (owner.HasControls()) owner.Controls.Clear(); } ////// Deletes all ///controls from the collection. /// /// public void CopyTo(Array array, int index) { for (IEnumerator e = this.GetEnumerator(); e.MoveNext();) array.SetValue(e.Current, index++); } ///[To be supplied.] ////// public Object SyncRoot { get { return this;} } ////// public bool IsReadOnly { get { return false;} } ////// public bool IsSynchronized { get { return false;} } ////// public IEnumerator GetEnumerator() { return owner.Controls.GetEnumerator(); } ////// public void Remove(HtmlTableRow row) { owner.Controls.Remove(row); } ////// 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. // //----------------------------------------------------------------------------- /* * HtmlTableRowCollection.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 HtmlTableRowCollection : ICollection { ////// The ///contains all /// of the table rows found within an /// server control. /// /// /// private HtmlTable owner; internal HtmlTableRowCollection(HtmlTable 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 HtmlTableRow this[int index] { get { return(HtmlTableRow)owner.Controls[index]; } } ////// Gets an ///control from an /// control thorugh the row's ordinal index value. /// /// public void Add(HtmlTableRow row) { Insert(-1, row); } ////// Adds the specified HtmlTableRow control to the end of the collection. /// ////// public void Insert(int index, HtmlTableRow row) { owner.Controls.AddAt(index, row); } ////// Adds an ///control to a specified /// location in the collection. /// /// public void Clear() { if (owner.HasControls()) owner.Controls.Clear(); } ////// Deletes all ///controls from the collection. /// /// public void CopyTo(Array array, int index) { for (IEnumerator e = this.GetEnumerator(); e.MoveNext();) array.SetValue(e.Current, index++); } ///[To be supplied.] ////// public Object SyncRoot { get { return this;} } ////// public bool IsReadOnly { get { return false;} } ////// public bool IsSynchronized { get { return false;} } ////// public IEnumerator GetEnumerator() { return owner.Controls.GetEnumerator(); } ////// public void Remove(HtmlTableRow row) { owner.Controls.Remove(row); } ////// 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
- StringStorage.cs
- TextShapeableCharacters.cs
- UrlAuthorizationModule.cs
- CompositeDataBoundControl.cs
- Separator.cs
- BitmapMetadataBlob.cs
- X509CertificateChain.cs
- processwaithandle.cs
- StorageBasedPackageProperties.cs
- Privilege.cs
- SendMessageChannelCache.cs
- UpdatePanelTrigger.cs
- IndependentAnimationStorage.cs
- XmlEventCache.cs
- WebPart.cs
- SmiXetterAccessMap.cs
- InputElement.cs
- PenCursorManager.cs
- LookupNode.cs
- HighlightVisual.cs
- SystemInfo.cs
- HttpHandler.cs
- WindowsStatusBar.cs
- CompilerResults.cs
- EmbossBitmapEffect.cs
- ipaddressinformationcollection.cs
- RegexCharClass.cs
- RotateTransform3D.cs
- DataMemberAttribute.cs
- ButtonPopupAdapter.cs
- IfAction.cs
- TypeExtensions.cs
- Slider.cs
- Point3DCollectionValueSerializer.cs
- HwndProxyElementProvider.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- SqlNotificationEventArgs.cs
- PerfCounters.cs
- JournalEntryListConverter.cs
- WindowsTreeView.cs
- OleDbTransaction.cs
- ManipulationStartedEventArgs.cs
- SplineKeyFrames.cs
- WorkflowRuntimeEndpoint.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- DataGridColumn.cs
- ApplicationServiceManager.cs
- BitmapEffectDrawingContextState.cs
- GradientSpreadMethodValidation.cs
- AffineTransform3D.cs
- HMACSHA384.cs
- SqlDataSourceStatusEventArgs.cs
- BitmapCodecInfo.cs
- PropagatorResult.cs
- MetadataItemCollectionFactory.cs
- VisualProxy.cs
- EarlyBoundInfo.cs
- Utils.cs
- oledbmetadatacolumnnames.cs
- Native.cs
- FrugalMap.cs
- SymmetricKey.cs
- LicenseProviderAttribute.cs
- ValueSerializer.cs
- RepeatBehaviorConverter.cs
- SourceElementsCollection.cs
- NumericPagerField.cs
- NullableFloatSumAggregationOperator.cs
- recordstatescratchpad.cs
- ColorKeyFrameCollection.cs
- ComboBoxItem.cs
- Model3D.cs
- ColorConverter.cs
- PointCollectionConverter.cs
- ProcessThreadDesigner.cs
- XhtmlBasicTextViewAdapter.cs
- RtfControls.cs
- BitmapEffectState.cs
- CompressedStack.cs
- RuleSetCollection.cs
- ToolStripDesignerAvailabilityAttribute.cs
- MetaChildrenColumn.cs
- CodeRegionDirective.cs
- HttpsHostedTransportConfiguration.cs
- JournalNavigationScope.cs
- OleCmdHelper.cs
- EasingQuaternionKeyFrame.cs
- ProjectionPruner.cs
- BooleanFacetDescriptionElement.cs
- SecureConversationServiceElement.cs
- XmlILModule.cs
- UidPropertyAttribute.cs
- Int32AnimationBase.cs
- RegexRunnerFactory.cs
- Brush.cs
- ParagraphVisual.cs
- ObjectItemAttributeAssemblyLoader.cs
- NavigationExpr.cs
- ComponentResourceKey.cs
- SafeViewOfFileHandle.cs