Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / LayoutTable.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OutputCacheProfileCollection.cs
- CapabilitiesSection.cs
- SystemIcmpV6Statistics.cs
- StringInfo.cs
- BinaryObjectReader.cs
- LassoHelper.cs
- COM2PropertyDescriptor.cs
- HtmlShim.cs
- KernelTypeValidation.cs
- ActivityScheduledRecord.cs
- BinaryParser.cs
- MenuScrollingVisibilityConverter.cs
- Unit.cs
- PropertyBuilder.cs
- PopupRoot.cs
- CustomAttribute.cs
- SymmetricCryptoHandle.cs
- FixedTextContainer.cs
- PeerTransportSecurityElement.cs
- FacetValueContainer.cs
- LogicalExpr.cs
- VisualCollection.cs
- TextOptionsInternal.cs
- DefaultSection.cs
- SessionState.cs
- Floater.cs
- ParserStreamGeometryContext.cs
- AppDomainInfo.cs
- ContractsBCL.cs
- ProtocolViolationException.cs
- ImageSource.cs
- EventToken.cs
- Exceptions.cs
- MessageDirection.cs
- PropertyValue.cs
- OleDbConnection.cs
- XmlQueryStaticData.cs
- DecoderFallback.cs
- RSAOAEPKeyExchangeFormatter.cs
- CompositeCollection.cs
- TickBar.cs
- IndependentAnimationStorage.cs
- Bits.cs
- OptimizedTemplateContentHelper.cs
- LineServices.cs
- GB18030Encoding.cs
- HttpModuleAction.cs
- SafeThemeHandle.cs
- sqlpipe.cs
- ChildTable.cs
- ToolstripProfessionalRenderer.cs
- EventManager.cs
- SettingsProperty.cs
- TdsParserStateObject.cs
- InternalConfigHost.cs
- LongValidator.cs
- FieldBuilder.cs
- DataTableExtensions.cs
- HWStack.cs
- AnnotationElement.cs
- XsltException.cs
- DbBuffer.cs
- indexingfiltermarshaler.cs
- LinqDataSourceDisposeEventArgs.cs
- Transaction.cs
- BamlLocalizer.cs
- JsonFaultDetail.cs
- HtmlInputReset.cs
- MatrixTransform.cs
- DbProviderFactoriesConfigurationHandler.cs
- DecimalSumAggregationOperator.cs
- PluralizationServiceUtil.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- DeploymentSection.cs
- DesignBindingConverter.cs
- DropShadowBitmapEffect.cs
- RootBrowserWindow.cs
- WaitForChangedResult.cs
- XmlSchemaDocumentation.cs
- AsmxEndpointPickerExtension.cs
- COM2FontConverter.cs
- QilTargetType.cs
- DataGridTextBoxColumn.cs
- SplitContainer.cs
- NameSpaceEvent.cs
- ResolvePPIDRequest.cs
- DataGridViewComboBoxEditingControl.cs
- SwitchLevelAttribute.cs
- EncoderParameters.cs
- BitStack.cs
- IntegerFacetDescriptionElement.cs
- ErrorProvider.cs
- DefaultDiscoveryServiceExtension.cs
- DataStreams.cs
- SafeBitVector32.cs
- SqlInternalConnectionTds.cs
- RegexRunnerFactory.cs
- PieceDirectory.cs
- ToolboxItemCollection.cs
- TextParagraph.cs