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
- SamlAdvice.cs
- StagingAreaInputItem.cs
- QueryStringConverter.cs
- MultiAsyncResult.cs
- ColorKeyFrameCollection.cs
- CodeTypeDeclarationCollection.cs
- ConnectionInterfaceCollection.cs
- BufferModeSettings.cs
- FormatException.cs
- XmlFormatMapping.cs
- SyndicationFeedFormatter.cs
- StandardToolWindows.cs
- DesignerCommandAdapter.cs
- HttpCacheParams.cs
- CachedBitmap.cs
- ShaderEffect.cs
- RtfToXamlReader.cs
- DataSourceCacheDurationConverter.cs
- HttpRuntimeSection.cs
- SafeFileMappingHandle.cs
- xmlglyphRunInfo.cs
- DataGridViewCellStateChangedEventArgs.cs
- EntityCommandDefinition.cs
- RpcResponse.cs
- RegistrySecurity.cs
- AuthenticationModulesSection.cs
- SmiMetaData.cs
- ClassValidator.cs
- MachinePropertyVariants.cs
- XhtmlTextWriter.cs
- Token.cs
- DocumentsTrace.cs
- RSAPKCS1SignatureDeformatter.cs
- Dictionary.cs
- CustomExpression.cs
- TiffBitmapDecoder.cs
- DataGridViewHitTestInfo.cs
- VisualBasic.cs
- mactripleDES.cs
- PagesSection.cs
- ItemsPresenter.cs
- InfoCardClaim.cs
- ProviderIncompatibleException.cs
- XmlNotation.cs
- Symbol.cs
- DataKey.cs
- EntitySqlException.cs
- Nodes.cs
- TableStyle.cs
- FormClosedEvent.cs
- BaseTemplateBuildProvider.cs
- VerificationAttribute.cs
- LambdaCompiler.Generated.cs
- COM2ComponentEditor.cs
- HtmlObjectListAdapter.cs
- DynamicPropertyReader.cs
- Vector3dCollection.cs
- RoutedEventValueSerializer.cs
- URL.cs
- WorkflowExecutor.cs
- ListDictionaryInternal.cs
- DuplicateWaitObjectException.cs
- SoapAttributes.cs
- ResXResourceReader.cs
- HyperLinkColumn.cs
- ScriptResourceAttribute.cs
- DataContractSerializer.cs
- Win32Native.cs
- SessionViewState.cs
- HtmlFormParameterReader.cs
- LogicalCallContext.cs
- _UncName.cs
- ResXResourceWriter.cs
- updatecommandorderer.cs
- InvalidOperationException.cs
- StreamGeometry.cs
- RuleInfoComparer.cs
- ContentPosition.cs
- UnmanagedBitmapWrapper.cs
- DetailsViewDeletedEventArgs.cs
- HttpResponse.cs
- IconConverter.cs
- X509RawDataKeyIdentifierClause.cs
- QueryPageSettingsEventArgs.cs
- SqlCaseSimplifier.cs
- QuaternionRotation3D.cs
- ProofTokenCryptoHandle.cs
- dataprotectionpermission.cs
- MetafileHeader.cs
- DataSet.cs
- TemplateControlParser.cs
- MobileControlsSectionHelper.cs
- DescendantOverDescendantQuery.cs
- ProfileProvider.cs
- DrawingContextDrawingContextWalker.cs
- InfiniteTimeSpanConverter.cs
- EventSinkHelperWriter.cs
- DebugHandleTracker.cs
- MenuItemStyleCollection.cs
- configsystem.cs