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 / WebControls / LayoutTable.cs / 1 / LayoutTable.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Collections; using System.Security.Permissions; using System.Web; ////// Table used for laying out controls in a Render method. Doesn't parent added controls, so /// it is safe to add child controls to this table. Sets page of added controls if not already set. /// [SupportsEventValidation] internal sealed class LayoutTable : Table { public LayoutTable(int rows, int columns, Page page) { if (rows <= 0) { throw new ArgumentOutOfRangeException("rows"); } if (columns <= 0) { throw new ArgumentOutOfRangeException("columns"); } // page may be null in the designer if (page != null) { this.Page = page; } for (int r = 0; r < rows; r++) { TableRow row = new TableRow(); Rows.Add(row); for (int c = 0; c < columns; c++) { TableCell cell = new LayoutTableCell(); row.Cells.Add(cell); } } } public TableCell this[int row, int column] { get { return (TableCell)Rows[row].Cells[column]; } } } } // 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.Collections; using System.Security.Permissions; using System.Web; ////// Table used for laying out controls in a Render method. Doesn't parent added controls, so /// it is safe to add child controls to this table. Sets page of added controls if not already set. /// [SupportsEventValidation] internal sealed class LayoutTable : Table { public LayoutTable(int rows, int columns, Page page) { if (rows <= 0) { throw new ArgumentOutOfRangeException("rows"); } if (columns <= 0) { throw new ArgumentOutOfRangeException("columns"); } // page may be null in the designer if (page != null) { this.Page = page; } for (int r = 0; r < rows; r++) { TableRow row = new TableRow(); Rows.Add(row); for (int c = 0; c < columns; c++) { TableCell cell = new LayoutTableCell(); row.Cells.Add(cell); } } } public TableCell this[int row, int column] { get { return (TableCell)Rows[row].Cells[column]; } } } } // 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
- GestureRecognizer.cs
- DataGrid.cs
- Unit.cs
- ClrPerspective.cs
- DefaultValueConverter.cs
- ComponentCollection.cs
- ClickablePoint.cs
- IItemProperties.cs
- HostProtectionPermission.cs
- StagingAreaInputItem.cs
- SessionStateModule.cs
- Int32Animation.cs
- FixedTextContainer.cs
- TokenFactoryCredential.cs
- Debug.cs
- DataControlButton.cs
- DropTarget.cs
- FlagsAttribute.cs
- XmlCharCheckingReader.cs
- XmlHierarchyData.cs
- AssemblyName.cs
- EventWaitHandleSecurity.cs
- XmlHierarchyData.cs
- Link.cs
- BooleanFunctions.cs
- ScriptResourceMapping.cs
- ListChangedEventArgs.cs
- Site.cs
- FixUpCollection.cs
- FilteredXmlReader.cs
- ClickablePoint.cs
- WindowsFormsHelpers.cs
- AccessText.cs
- BaseEntityWrapper.cs
- RowsCopiedEventArgs.cs
- PackUriHelper.cs
- PassportAuthenticationModule.cs
- FormViewModeEventArgs.cs
- CacheChildrenQuery.cs
- SchemaTypeEmitter.cs
- ProviderException.cs
- HotSpot.cs
- SourceSwitch.cs
- AnnouncementInnerClientCD1.cs
- DataColumnMappingCollection.cs
- AssemblyHash.cs
- HttpGetProtocolImporter.cs
- FilterQuery.cs
- CodeConstructor.cs
- MenuItemStyleCollection.cs
- documentsequencetextview.cs
- ICspAsymmetricAlgorithm.cs
- DateTimeSerializationSection.cs
- SafeArrayRankMismatchException.cs
- Cursors.cs
- PointAnimationClockResource.cs
- ValidationErrorEventArgs.cs
- WizardPanel.cs
- DynamicRendererThreadManager.cs
- PrinterUnitConvert.cs
- COM2ComponentEditor.cs
- TextDecorations.cs
- DispatchChannelSink.cs
- RawStylusInputCustomData.cs
- SqlUdtInfo.cs
- RequiredAttributeAttribute.cs
- HtmlTextArea.cs
- DocumentViewerHelper.cs
- ImpersonateTokenRef.cs
- ScrollItemPattern.cs
- SelectedDatesCollection.cs
- Material.cs
- storepermissionattribute.cs
- NegationPusher.cs
- ContractType.cs
- PolicyLevel.cs
- HttpWriter.cs
- URLEditor.cs
- ControlParameter.cs
- EventSetter.cs
- MsmqIntegrationChannelListener.cs
- regiisutil.cs
- FormViewModeEventArgs.cs
- NonBatchDirectoryCompiler.cs
- RsaSecurityKey.cs
- sitestring.cs
- HwndProxyElementProvider.cs
- FunctionParameter.cs
- ScrollChrome.cs
- CacheSection.cs
- ZoneLinkButton.cs
- RadialGradientBrush.cs
- PerformanceCounter.cs
- QilStrConcatenator.cs
- ClearCollection.cs
- _AutoWebProxyScriptHelper.cs
- FragmentQueryKB.cs
- CompositeDesignerAccessibleObject.cs
- DocumentApplicationDocumentViewer.cs
- HttpListenerException.cs