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
- HebrewNumber.cs
- WebHttpEndpoint.cs
- RelatedPropertyManager.cs
- CollectionsUtil.cs
- EnumUnknown.cs
- RecommendedAsConfigurableAttribute.cs
- NativeObjectSecurity.cs
- CodeTypeParameter.cs
- EventlogProvider.cs
- BasicSecurityProfileVersion.cs
- Vector3D.cs
- BaseValidator.cs
- BuilderElements.cs
- PaperSize.cs
- EmptyEnumerable.cs
- ExpiredSecurityTokenException.cs
- FormViewAutoFormat.cs
- ContainerParagraph.cs
- APCustomTypeDescriptor.cs
- CommentEmitter.cs
- WindowsGraphicsWrapper.cs
- __FastResourceComparer.cs
- TabControl.cs
- PlanCompiler.cs
- ResXResourceWriter.cs
- sqlstateclientmanager.cs
- PropertyEmitter.cs
- TransformGroup.cs
- HeaderedContentControl.cs
- PropertyGeneratedEventArgs.cs
- XPathDescendantIterator.cs
- HtmlForm.cs
- RoleGroupCollection.cs
- Missing.cs
- BinaryNode.cs
- SafeReadContext.cs
- FileLoadException.cs
- CategoryGridEntry.cs
- LoadedOrUnloadedOperation.cs
- TreeViewItem.cs
- NotifyInputEventArgs.cs
- StatusBar.cs
- StringUtil.cs
- CompilerState.cs
- BlockUIContainer.cs
- Ipv6Element.cs
- PackageFilter.cs
- webclient.cs
- DrawingBrush.cs
- ListBoxItemAutomationPeer.cs
- ApplicationFileParser.cs
- Highlights.cs
- HostProtectionException.cs
- ListViewCancelEventArgs.cs
- AlternationConverter.cs
- ExtendedProtectionPolicyElement.cs
- MailWebEventProvider.cs
- FreeFormPanel.cs
- Bitmap.cs
- CqlGenerator.cs
- DataGridViewCellMouseEventArgs.cs
- FormViewUpdatedEventArgs.cs
- PropertyEmitterBase.cs
- sqlpipe.cs
- PropertyFilter.cs
- NeutralResourcesLanguageAttribute.cs
- _LazyAsyncResult.cs
- BaseDataBoundControl.cs
- ResourceProviderFactory.cs
- Color.cs
- DispatcherFrame.cs
- CompilerGeneratedAttribute.cs
- DocumentEventArgs.cs
- ToolStripCustomTypeDescriptor.cs
- WebPartUtil.cs
- SerializationException.cs
- Validator.cs
- PathFigure.cs
- DataKeyArray.cs
- EnumerableRowCollection.cs
- MenuCommandService.cs
- Grid.cs
- InternalMappingException.cs
- Claim.cs
- PropertyEntry.cs
- UnsafeNativeMethods.cs
- CroppedBitmap.cs
- StylusLogic.cs
- FieldToken.cs
- PathFigureCollectionConverter.cs
- PathGeometry.cs
- Codec.cs
- ConfigsHelper.cs
- TextUtf8RawTextWriter.cs
- Clipboard.cs
- ITextView.cs
- BamlBinaryWriter.cs
- ControlEvent.cs
- dataprotectionpermissionattribute.cs
- LassoSelectionBehavior.cs