Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TreeNodeBindingCollection.cs
- XmlDataLoader.cs
- StylusPlugin.cs
- ApplicationContext.cs
- StateBag.cs
- SubclassTypeValidatorAttribute.cs
- SessionEndingCancelEventArgs.cs
- TreeNode.cs
- SettingsContext.cs
- AttachmentCollection.cs
- WhereQueryOperator.cs
- LabelTarget.cs
- ETagAttribute.cs
- ConditionedDesigner.cs
- WindowAutomationPeer.cs
- UmAlQuraCalendar.cs
- ToolStripItemCollection.cs
- listviewsubitemcollectioneditor.cs
- Type.cs
- SelectionChangedEventArgs.cs
- UnsafeNativeMethods.cs
- XPathNodeIterator.cs
- AddInSegmentDirectoryNotFoundException.cs
- TokenBasedSet.cs
- GridView.cs
- DataRecordInternal.cs
- XmlChildEnumerator.cs
- ConfigPathUtility.cs
- SystemTcpConnection.cs
- ProfileProvider.cs
- DataGridItemCollection.cs
- UnsafeNativeMethodsMilCoreApi.cs
- TreeView.cs
- Listbox.cs
- Repeater.cs
- Config.cs
- safesecurityhelperavalon.cs
- SmiMetaData.cs
- FacetEnabledSchemaElement.cs
- LockRenewalTask.cs
- FontFamilyIdentifier.cs
- ContentType.cs
- TreeViewTemplateSelector.cs
- TypeConverter.cs
- MemberListBinding.cs
- ActiveXContainer.cs
- ToolStripScrollButton.cs
- HttpWebRequestElement.cs
- TailCallAnalyzer.cs
- BoundField.cs
- Timeline.cs
- ResourceDictionaryCollection.cs
- AlternateView.cs
- XmlQuerySequence.cs
- CommandDevice.cs
- PolicyAssertionCollection.cs
- MessagePartDescriptionCollection.cs
- InvokeFunc.cs
- ChangeTracker.cs
- GridViewUpdateEventArgs.cs
- LinqDataSourceInsertEventArgs.cs
- UdpDiscoveryEndpointProvider.cs
- HttpWriter.cs
- WindowsListViewItemCheckBox.cs
- RuleRef.cs
- TextParaLineResult.cs
- Color.cs
- BinaryConverter.cs
- ZoomingMessageFilter.cs
- GiveFeedbackEventArgs.cs
- MainMenu.cs
- CapacityStreamGeometryContext.cs
- WebConvert.cs
- SchemaDeclBase.cs
- SevenBitStream.cs
- XmlAnyElementAttributes.cs
- SelectorItemAutomationPeer.cs
- ListBoxItemAutomationPeer.cs
- ToolStripMenuItem.cs
- FileDialogCustomPlace.cs
- EdmItemCollection.OcAssemblyCache.cs
- HttpCapabilitiesEvaluator.cs
- HtmlCommandAdapter.cs
- DataTrigger.cs
- PopOutPanel.cs
- ParseHttpDate.cs
- StringCollection.cs
- EpmSyndicationContentDeSerializer.cs
- GetPageNumberCompletedEventArgs.cs
- ToolStripItem.cs
- ValidationError.cs
- ContainerVisual.cs
- ProxyGenerator.cs
- FileLoadException.cs
- MiniModule.cs
- AutomationEventArgs.cs
- DataSetFieldSchema.cs
- BlurEffect.cs
- WebPartCatalogAddVerb.cs
- smtpconnection.cs