Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlTableRow.cs / 1305376 / HtmlTableRow.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.HtmlControls { using System; using System.Collections; using System.ComponentModel; using System.Globalization; using System.Web; using System.Web.UI; using System.Security.Permissions; ////// [ ParseChildren(true, "Cells") ] public class HtmlTableRow : HtmlContainerControl { HtmlTableCellCollection cells; public HtmlTableRow() : base("tr") { } ////// The ////// class defines the properties, methods, and events for the HtmlTableRow control. /// This class allows programmatic access on the server to individual HTML /// <tr> elements enclosed within an control. /// /// [ WebCategory("Layout"), DefaultValue(""), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden) ] public string Align { get { string s = Attributes["align"]; return((s != null) ? s : String.Empty); } set { Attributes["align"] = MapStringAttributeToString(value); } } /* * Collection of child TableCells. */ ////// Gets or sets the horizontal alignment of the cells contained in an /// ///control. /// /// [ Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), ] public virtual HtmlTableCellCollection Cells { get { if (cells == null) cells = new HtmlTableCellCollection(this); return cells; } } ////// Gets or sets the group of table cells contained within an /// ///control. /// /// [ WebCategory("Appearance"), DefaultValue(""), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden) ] public string BgColor { get { string s = Attributes["bgcolor"]; return((s != null) ? s : String.Empty); } set { Attributes["bgcolor"] = MapStringAttributeToString(value); } } ////// Gets or sets the background color of an ////// control. /// /// [ WebCategory("Appearance"), DefaultValue(""), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden) ] public string BorderColor { get { string s = Attributes["bordercolor"]; return((s != null) ? s : String.Empty); } set { Attributes["bordercolor"] = MapStringAttributeToString(value); } } ////// Gets or sets the border color of an ///control. /// /// [ WebCategory("Layout"), DefaultValue(""), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden) ] public string Height { get { string s = Attributes["height"]; return((s != null) ? s : String.Empty); } set { Attributes["height"] = MapStringAttributeToString(value); } } ////// Gets or sets the height of an ///control. /// /// public override string InnerHtml { get { throw new NotSupportedException(SR.GetString(SR.InnerHtml_not_supported, this.GetType().Name)); } set { throw new NotSupportedException(SR.GetString(SR.InnerHtml_not_supported, this.GetType().Name)); } } ///[To be supplied.] ////// public override string InnerText { get { throw new NotSupportedException(SR.GetString(SR.InnerText_not_supported, this.GetType().Name)); } set { throw new NotSupportedException(SR.GetString(SR.InnerText_not_supported, this.GetType().Name)); } } ///[To be supplied.] ////// [ WebCategory("Layout"), DefaultValue(""), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden) ] public string VAlign { get { string s = Attributes["valign"]; return((s != null) ? s : String.Empty); } set { Attributes["valign"] = MapStringAttributeToString(value); } } ////// Gets or sets the vertical alignment of of the cells contained in an /// ///control. /// /// /// protected internal override void RenderChildren(HtmlTextWriter writer) { writer.WriteLine(); writer.Indent++; base.RenderChildren(writer); writer.Indent--; } ////// /// protected override void RenderEndTag(HtmlTextWriter writer) { base.RenderEndTag(writer); writer.WriteLine(); } ////// protected override ControlCollection CreateControlCollection() { return new HtmlTableCellControlCollection(this); } ///[To be supplied.] ////// protected class HtmlTableCellControlCollection : ControlCollection { internal HtmlTableCellControlCollection (Control owner) : base(owner) { } ///[To be supplied.] ////// public override void Add(Control child) { if (child is HtmlTableCell) base.Add(child); else throw new ArgumentException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "HtmlTableRow", child.GetType().Name.ToString(CultureInfo.InvariantCulture))); // throw an exception here } ///Adds the specified ///object to the collection. The new control is added /// to the end of the array. /// public override void AddAt(int index, Control child) { if (child is HtmlTableCell) base.AddAt(index, child); else throw new ArgumentException(SR.GetString(SR.Cannot_Have_Children_Of_Type, "HtmlTableRow", child.GetType().Name.ToString(CultureInfo.InvariantCulture))); // throw an exception here } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Adds the specified ///object to the collection. The new control is added /// to the array at the specified index location.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ManipulationDeltaEventArgs.cs
- EncryptedData.cs
- TypeReference.cs
- XsdDuration.cs
- SymmetricSecurityProtocolFactory.cs
- DrawTreeNodeEventArgs.cs
- ControlBuilderAttribute.cs
- NonSerializedAttribute.cs
- CompressedStack.cs
- RuntimeConfigurationRecord.cs
- NameValueFileSectionHandler.cs
- TerminatorSinks.cs
- DataGridHeaderBorder.cs
- PolicyAssertionCollection.cs
- CatalogPartCollection.cs
- GroupItem.cs
- WebBrowser.cs
- HttpListener.cs
- MenuAdapter.cs
- AuthenticatedStream.cs
- BrushMappingModeValidation.cs
- ParameterCollectionEditor.cs
- StatusBarPanel.cs
- MultiSelector.cs
- NameValueFileSectionHandler.cs
- InstanceKeyCollisionException.cs
- RegisteredHiddenField.cs
- Range.cs
- FileLevelControlBuilderAttribute.cs
- ClientConvert.cs
- DataGridViewDataConnection.cs
- TokenizerHelper.cs
- SchemaTableOptionalColumn.cs
- Cursor.cs
- EdmFunctionAttribute.cs
- LocationSectionRecord.cs
- NestPullup.cs
- OracleMonthSpan.cs
- StrongNameMembershipCondition.cs
- CalendarDateRange.cs
- VisualTreeUtils.cs
- HitTestResult.cs
- Attributes.cs
- RealizationDrawingContextWalker.cs
- RightsManagementPermission.cs
- EntityDataSourceEntitySetNameItem.cs
- MediaPlayerState.cs
- ParameterToken.cs
- ApplicationException.cs
- DataList.cs
- DesignerTransaction.cs
- TableChangeProcessor.cs
- AssociationSetMetadata.cs
- Regex.cs
- SqlDataSourceFilteringEventArgs.cs
- PageClientProxyGenerator.cs
- BinaryFormatter.cs
- _PooledStream.cs
- BinaryExpression.cs
- PassportPrincipal.cs
- CapabilitiesUse.cs
- BookmarkCallbackWrapper.cs
- Object.cs
- WaitForChangedResult.cs
- Command.cs
- DeclarativeCatalogPart.cs
- CoreSwitches.cs
- StreamUpdate.cs
- HTMLTagNameToTypeMapper.cs
- TransactionalPackage.cs
- CompensableActivity.cs
- SqlIdentifier.cs
- ThemeDirectoryCompiler.cs
- ProfileSettings.cs
- CreatingCookieEventArgs.cs
- ZipPackage.cs
- __TransparentProxy.cs
- DeferredElementTreeState.cs
- EncryptedData.cs
- SiteMap.cs
- TreeViewImageKeyConverter.cs
- AttributeCollection.cs
- BitmapEffect.cs
- SingleAnimationUsingKeyFrames.cs
- MD5CryptoServiceProvider.cs
- ThreadInterruptedException.cs
- View.cs
- WebPartTransformer.cs
- KeyedHashAlgorithm.cs
- PartBasedPackageProperties.cs
- MtomMessageEncodingBindingElement.cs
- JapaneseLunisolarCalendar.cs
- TreeSet.cs
- ImpersonateTokenRef.cs
- HttpCapabilitiesEvaluator.cs
- CapabilitiesState.cs
- SmtpSection.cs
- RegexCharClass.cs
- MediaElement.cs
- SessionEndingCancelEventArgs.cs