Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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. //------------------------------------------------------------------------------ //// 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
- DesignerAutoFormatCollection.cs
- DynamicResourceExtension.cs
- TypeCollectionPropertyEditor.cs
- CmsInterop.cs
- X509ChainPolicy.cs
- ArgumentException.cs
- SemaphoreFullException.cs
- PolyBezierSegmentFigureLogic.cs
- RC2CryptoServiceProvider.cs
- ResourceDictionaryCollection.cs
- ConnectionStringsExpressionEditor.cs
- ValidatorCollection.cs
- ViewCellSlot.cs
- SecurityContext.cs
- SharedPersonalizationStateInfo.cs
- XmlElementList.cs
- PluggableProtocol.cs
- UriParserTemplates.cs
- HttpInputStream.cs
- DirectionalLight.cs
- StylusPointProperty.cs
- DataGridParentRows.cs
- DependencyObjectType.cs
- GlyphRunDrawing.cs
- CompiledRegexRunner.cs
- ThemeableAttribute.cs
- ParseElementCollection.cs
- TrackingServices.cs
- CustomTrackingRecord.cs
- SeekStoryboard.cs
- GreaterThan.cs
- DataKey.cs
- DeflateEmulationStream.cs
- UpdateExpressionVisitor.cs
- DefaultObjectMappingItemCollection.cs
- SettingsAttributeDictionary.cs
- WebDescriptionAttribute.cs
- RegistryKey.cs
- XmlChildEnumerator.cs
- AsnEncodedData.cs
- AssemblyInfo.cs
- TextServicesProperty.cs
- TableLayout.cs
- TokenBasedSetEnumerator.cs
- Relationship.cs
- XslCompiledTransform.cs
- CorrelationQueryBehavior.cs
- SettingsPropertyNotFoundException.cs
- ResolveResponseInfo.cs
- HttpServerVarsCollection.cs
- _TransmitFileOverlappedAsyncResult.cs
- LabelLiteral.cs
- ObjectTag.cs
- Ref.cs
- SectionInformation.cs
- _Rfc2616CacheValidators.cs
- DirectoryInfo.cs
- HttpApplication.cs
- AdapterDictionary.cs
- XpsPackagingException.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- GenericNameHandler.cs
- DataKey.cs
- ExtendedProtectionPolicyElement.cs
- Int32KeyFrameCollection.cs
- ClientSideQueueItem.cs
- FontCacheUtil.cs
- ComponentGlyph.cs
- AxHostDesigner.cs
- BaseDataListDesigner.cs
- ConfigurationStrings.cs
- EllipseGeometry.cs
- WindowsUpDown.cs
- ObservableDictionary.cs
- PageHandlerFactory.cs
- WebControl.cs
- ExpressionPrinter.cs
- LocationUpdates.cs
- WindowsSpinner.cs
- OutputScopeManager.cs
- OdbcError.cs
- CodeDomDesignerLoader.cs
- AnnotationAdorner.cs
- WorkflowNamespace.cs
- XmlSerializerFactory.cs
- DockPatternIdentifiers.cs
- TransactionWaitAsyncResult.cs
- ISFClipboardData.cs
- PageEventArgs.cs
- CodeRemoveEventStatement.cs
- COM2ExtendedTypeConverter.cs
- DATA_BLOB.cs
- ProgramPublisher.cs
- BindingContext.cs
- Set.cs
- CollectionViewProxy.cs
- AlignmentXValidation.cs
- OnOperation.cs
- CustomTypeDescriptor.cs
- HttpException.cs