Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / LayoutTable.cs / 2 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- COM2PropertyDescriptor.cs
- SystemTcpStatistics.cs
- InputBinding.cs
- ToolStripKeyboardHandlingService.cs
- XmlProcessingInstruction.cs
- ContextConfiguration.cs
- WrappedIUnknown.cs
- FixedTextContainer.cs
- ListenerSingletonConnectionReader.cs
- AxisAngleRotation3D.cs
- XsltQilFactory.cs
- Win32SafeHandles.cs
- AbandonedMutexException.cs
- SoapEnvelopeProcessingElement.cs
- ListViewItem.cs
- Win32.cs
- EndPoint.cs
- DataSourceSelectArguments.cs
- ComIntegrationManifestGenerator.cs
- CorrelationManager.cs
- PageSetupDialog.cs
- ObjectDataSourceDisposingEventArgs.cs
- InlineUIContainer.cs
- SqlDependencyUtils.cs
- XmlException.cs
- PinnedBufferMemoryStream.cs
- ActivityTrace.cs
- FrameworkObject.cs
- Menu.cs
- CreateParams.cs
- WebBrowserNavigatedEventHandler.cs
- Grammar.cs
- GeometryValueSerializer.cs
- StringBuilder.cs
- IndentedTextWriter.cs
- WindowsAuthenticationEventArgs.cs
- SafeFileMappingHandle.cs
- PrintingPermissionAttribute.cs
- ResourceExpression.cs
- DrawListViewColumnHeaderEventArgs.cs
- filewebrequest.cs
- RichTextBoxConstants.cs
- ObjectNotFoundException.cs
- UrlAuthFailureHandler.cs
- ReservationNotFoundException.cs
- ResourceReader.cs
- GenericAuthenticationEventArgs.cs
- TypeGeneratedEventArgs.cs
- SafeArrayTypeMismatchException.cs
- DispatcherSynchronizationContext.cs
- XmlILCommand.cs
- TargetParameterCountException.cs
- WindowsFormsSynchronizationContext.cs
- CustomErrorCollection.cs
- TransportSecurityProtocolFactory.cs
- PrimaryKeyTypeConverter.cs
- FormsAuthenticationConfiguration.cs
- Accessible.cs
- AutoResizedEvent.cs
- EventPropertyMap.cs
- RewritingProcessor.cs
- NameValuePermission.cs
- RepeaterItem.cs
- ToolStripLabel.cs
- WebHttpDispatchOperationSelectorData.cs
- XmlSchema.cs
- Timer.cs
- TreeNodeSelectionProcessor.cs
- MatrixStack.cs
- TransformConverter.cs
- Transform3DGroup.cs
- ObjectAnimationUsingKeyFrames.cs
- DLinqColumnProvider.cs
- Selection.cs
- AccessorTable.cs
- Debug.cs
- BitmapCodecInfoInternal.cs
- ExportOptions.cs
- CapiSafeHandles.cs
- DesignerResources.cs
- Missing.cs
- PropertyChangeTracker.cs
- EditCommandColumn.cs
- GenericPrincipal.cs
- Span.cs
- RootContext.cs
- OperationBehaviorAttribute.cs
- XmlToDatasetMap.cs
- FakeModelPropertyImpl.cs
- UIElementCollection.cs
- WithStatement.cs
- TreeIterators.cs
- RadioButtonFlatAdapter.cs
- RoleExceptions.cs
- xml.cs
- RC2CryptoServiceProvider.cs
- DescendantOverDescendantQuery.cs
- ColorConvertedBitmapExtension.cs
- TableLayoutRowStyleCollection.cs
- AccessDataSource.cs