Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- PerformanceCounterPermissionEntryCollection.cs
- ImpersonationContext.cs
- TableItemProviderWrapper.cs
- VerificationAttribute.cs
- TextEncodedRawTextWriter.cs
- XmlSchemaObject.cs
- VersionPair.cs
- SByteStorage.cs
- XslNumber.cs
- WebUtil.cs
- WorkflowViewManager.cs
- XPathBinder.cs
- CompModSwitches.cs
- EntityType.cs
- FragmentNavigationEventArgs.cs
- HttpCookiesSection.cs
- CopyNodeSetAction.cs
- NetNamedPipeSecurityMode.cs
- ErrorHandler.cs
- PersonalizationProvider.cs
- RegisteredExpandoAttribute.cs
- EventPrivateKey.cs
- DiscreteKeyFrames.cs
- UpdatePanelControlTrigger.cs
- ZipIOExtraFieldPaddingElement.cs
- WebPartEditVerb.cs
- ConnectionsZone.cs
- TextServicesDisplayAttribute.cs
- ErrorRuntimeConfig.cs
- ExpressionBindingCollection.cs
- ReceiveActivity.cs
- TickBar.cs
- HelpInfo.cs
- WsdlInspector.cs
- ScaleTransform3D.cs
- OrthographicCamera.cs
- PropertyItem.cs
- RectangleConverter.cs
- TemplatePropertyEntry.cs
- PopupControlService.cs
- QilIterator.cs
- PersistenceException.cs
- TextDpi.cs
- GridProviderWrapper.cs
- ParenExpr.cs
- GreaterThanOrEqual.cs
- MemberJoinTreeNode.cs
- TypeInfo.cs
- StylusPointDescription.cs
- CodeBinaryOperatorExpression.cs
- ConnectionStringsSection.cs
- UnsafeNativeMethodsPenimc.cs
- UnsafeNativeMethods.cs
- DataTemplateSelector.cs
- RSAOAEPKeyExchangeDeformatter.cs
- XmlnsCompatibleWithAttribute.cs
- ToolStripItemEventArgs.cs
- ErrorHandlingReceiver.cs
- BitmapDecoder.cs
- ThreadSafeList.cs
- AnonymousIdentificationModule.cs
- _FixedSizeReader.cs
- EntityDataSourceReferenceGroup.cs
- OdbcParameter.cs
- NullableBoolConverter.cs
- ItemsControlAutomationPeer.cs
- Query.cs
- SafeProcessHandle.cs
- ComNativeDescriptor.cs
- AggregateNode.cs
- FrameworkContentElement.cs
- XmlSchemaComplexContentExtension.cs
- DataTableClearEvent.cs
- ActiveXSite.cs
- OverflowException.cs
- ParenExpr.cs
- Compensation.cs
- PointAnimationUsingKeyFrames.cs
- TrackingAnnotationCollection.cs
- QilLiteral.cs
- DisplayNameAttribute.cs
- SystemNetworkInterface.cs
- ScrollChrome.cs
- BinHexEncoding.cs
- securitycriticaldataClass.cs
- DataGridViewTextBoxCell.cs
- DetailsViewInsertedEventArgs.cs
- BitmapDownload.cs
- ConsumerConnectionPointCollection.cs
- AuthenticationService.cs
- Bits.cs
- HtmlInputCheckBox.cs
- InfoCardTraceRecord.cs
- WindowProviderWrapper.cs
- DataBindingList.cs
- HttpPostedFile.cs
- ConfigXmlAttribute.cs
- PrimaryKeyTypeConverter.cs
- ErrorActivity.cs
- LocatorBase.cs