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
- SystemColorTracker.cs
- _ConnectionGroup.cs
- PreviewKeyDownEventArgs.cs
- DataGridViewRowPostPaintEventArgs.cs
- MemberAccessException.cs
- ExpressionNode.cs
- FillRuleValidation.cs
- SettingsAttributes.cs
- TableLayoutRowStyleCollection.cs
- ChtmlTextWriter.cs
- EventDescriptor.cs
- XPathChildIterator.cs
- Config.cs
- BindingContext.cs
- TypeDelegator.cs
- InkCanvasFeedbackAdorner.cs
- Renderer.cs
- CookielessData.cs
- SelectedGridItemChangedEvent.cs
- DoubleStorage.cs
- NodeLabelEditEvent.cs
- updatecommandorderer.cs
- ProviderBase.cs
- BaseCodeDomTreeGenerator.cs
- PropertiesTab.cs
- FieldNameLookup.cs
- SqlConnectionHelper.cs
- SequenceDesignerAccessibleObject.cs
- Effect.cs
- XsltSettings.cs
- LoadItemsEventArgs.cs
- XPathDocumentIterator.cs
- DeferredReference.cs
- WaveHeader.cs
- DataRelationCollection.cs
- PointCollectionConverter.cs
- XslVisitor.cs
- EventHandlerList.cs
- PolicyChain.cs
- AdPostCacheSubstitution.cs
- KnownTypesHelper.cs
- AlignmentXValidation.cs
- LinkedResourceCollection.cs
- TextSelectionProcessor.cs
- AutomationProperties.cs
- SqlTopReducer.cs
- TextModifier.cs
- DataGridViewRow.cs
- IssuanceLicense.cs
- InputLangChangeEvent.cs
- ElementsClipboardData.cs
- DataGridViewCellValidatingEventArgs.cs
- WithParamAction.cs
- ListViewSortEventArgs.cs
- WebPartConnectionsCancelVerb.cs
- Publisher.cs
- ResourceAssociationSet.cs
- PeerApplicationLaunchInfo.cs
- BlobPersonalizationState.cs
- ValueQuery.cs
- QueryTaskGroupState.cs
- PreloadHost.cs
- XmlSchemaExporter.cs
- OutputCacheSettings.cs
- UshortList2.cs
- EntityEntry.cs
- InternalDispatchObject.cs
- MetabaseReader.cs
- CorrelationResolver.cs
- ConnectionStringsSection.cs
- TraceXPathNavigator.cs
- SubMenuStyleCollection.cs
- PropertyEmitterBase.cs
- DataPagerField.cs
- InvalidFilterCriteriaException.cs
- BindingsCollection.cs
- OleDbEnumerator.cs
- ModifierKeysValueSerializer.cs
- TemplateControlBuildProvider.cs
- WindowsAuthenticationModule.cs
- COM2EnumConverter.cs
- ScriptingRoleServiceSection.cs
- ConnectionManagementElement.cs
- Section.cs
- Graphics.cs
- DLinqDataModelProvider.cs
- ImplicitInputBrush.cs
- TextRangeSerialization.cs
- VisualStyleTypesAndProperties.cs
- SQLResource.cs
- GroupBox.cs
- RelatedPropertyManager.cs
- EventLogSession.cs
- prefixendpointaddressmessagefiltertable.cs
- HatchBrush.cs
- HtmlTable.cs
- HeaderedContentControl.cs
- BamlBinaryWriter.cs
- DetailsViewRow.cs
- codemethodreferenceexpression.cs