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 / 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
- SqlDataSourceView.cs
- ResXResourceReader.cs
- PrinterResolution.cs
- CheckBox.cs
- UnsafePeerToPeerMethods.cs
- ProvidersHelper.cs
- GetPageCompletedEventArgs.cs
- WebHttpBinding.cs
- MtomMessageEncodingBindingElement.cs
- ProgressPage.cs
- DispatcherEventArgs.cs
- ContextQuery.cs
- GenerateScriptTypeAttribute.cs
- StringInfo.cs
- BrowserCapabilitiesCompiler.cs
- ProxyWebPartConnectionCollection.cs
- TypeResolver.cs
- DoubleAnimationBase.cs
- VirtualStackFrame.cs
- PropertyItem.cs
- UpdateTranslator.cs
- ZipArchive.cs
- DispatcherTimer.cs
- ProtectedProviderSettings.cs
- CustomErrorCollection.cs
- MarkupProperty.cs
- QilName.cs
- PreviewPageInfo.cs
- ConstraintManager.cs
- WinEventTracker.cs
- CanonicalizationDriver.cs
- ExecutionContext.cs
- ExecutionContext.cs
- Animatable.cs
- ValidationPropertyAttribute.cs
- _BasicClient.cs
- XPathEmptyIterator.cs
- DataServiceBehavior.cs
- PageEventArgs.cs
- LogEntryHeaderDeserializer.cs
- WriteableBitmap.cs
- RegexInterpreter.cs
- QuotedPairReader.cs
- Html32TextWriter.cs
- OpCopier.cs
- ReadOnlyState.cs
- ToolStripGripRenderEventArgs.cs
- AutomationIdentifier.cs
- ListViewSortEventArgs.cs
- DataControlFieldCollection.cs
- COAUTHIDENTITY.cs
- XmlProcessingInstruction.cs
- TdsParserSessionPool.cs
- ColumnWidthChangedEvent.cs
- ExtendedPropertyDescriptor.cs
- HtmlImageAdapter.cs
- ProjectedSlot.cs
- DecoratedNameAttribute.cs
- QilScopedVisitor.cs
- _AutoWebProxyScriptEngine.cs
- MsmqHostedTransportConfiguration.cs
- ProcessProtocolHandler.cs
- DictionaryCustomTypeDescriptor.cs
- Scheduling.cs
- Point4D.cs
- StreamInfo.cs
- OleDbConnectionInternal.cs
- WindowsPrincipal.cs
- SecurityTokenAuthenticator.cs
- IEnumerable.cs
- TextDecorationLocationValidation.cs
- XmlSchemaComplexContent.cs
- TreeIterators.cs
- Point3DIndependentAnimationStorage.cs
- OleDbWrapper.cs
- SynchronizingStream.cs
- MouseBinding.cs
- HttpsTransportBindingElement.cs
- FilteredXmlReader.cs
- Converter.cs
- HttpDebugHandler.cs
- ClientConfigPaths.cs
- ControllableStoryboardAction.cs
- XmlBinaryReader.cs
- StatusBarItem.cs
- NeutralResourcesLanguageAttribute.cs
- XsltCompileContext.cs
- IntegerValidator.cs
- SafeUserTokenHandle.cs
- Thumb.cs
- SqlConnection.cs
- RegexStringValidator.cs
- CollectionView.cs
- EntityType.cs
- MatchNoneMessageFilter.cs
- ComponentCommands.cs
- Interlocked.cs
- DurableInstanceProvider.cs
- IriParsingElement.cs
- InvokeHandlers.cs