Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlTableRow.cs / 2 / 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") ] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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. // Copyright (c) Microsoft Corporation. All rights reserved.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
- DbExpressionVisitor_TResultType.cs
- MembershipValidatePasswordEventArgs.cs
- QueryCacheEntry.cs
- SelectorAutomationPeer.cs
- TransformerInfoCollection.cs
- CodeNamespaceImportCollection.cs
- NotificationContext.cs
- XmlBinaryReader.cs
- SecurityPermission.cs
- BitmapImage.cs
- BufferedReadStream.cs
- __Filters.cs
- PermissionToken.cs
- SiteMapDataSourceView.cs
- InputProcessorProfiles.cs
- CodeEventReferenceExpression.cs
- SqlDataSourceCache.cs
- SiteMapNodeItem.cs
- AbandonedMutexException.cs
- CommandConverter.cs
- GraphicsPathIterator.cs
- sqlstateclientmanager.cs
- HttpInputStream.cs
- DataKeyCollection.cs
- _Semaphore.cs
- WindowsSecurityToken.cs
- XmlSchemaExternal.cs
- InstanceLockQueryResult.cs
- UnsafeNativeMethodsMilCoreApi.cs
- SID.cs
- SupportsEventValidationAttribute.cs
- ObjectSecurityT.cs
- ParameterBuilder.cs
- AnnouncementDispatcherAsyncResult.cs
- TableLayoutPanelCodeDomSerializer.cs
- DisplayMemberTemplateSelector.cs
- TrackingDataItem.cs
- LoadedOrUnloadedOperation.cs
- PropertyPathConverter.cs
- Utils.cs
- SmtpFailedRecipientsException.cs
- DatePickerAutomationPeer.cs
- PropertyRecord.cs
- SystemColorTracker.cs
- PlanCompilerUtil.cs
- DataGridCommandEventArgs.cs
- ProgressBarAutomationPeer.cs
- ClientConfigPaths.cs
- CounterSampleCalculator.cs
- HelloOperationCD1AsyncResult.cs
- ItemsControl.cs
- ErrorProvider.cs
- RelationshipDetailsRow.cs
- DataPointer.cs
- util.cs
- EntityParameterCollection.cs
- _UriTypeConverter.cs
- SelectionPatternIdentifiers.cs
- NotifyParentPropertyAttribute.cs
- StringFunctions.cs
- GlobalizationAssembly.cs
- CacheSection.cs
- TextEditorParagraphs.cs
- SpinLock.cs
- FlowLayoutPanel.cs
- KeyGestureConverter.cs
- SqlDependencyListener.cs
- ActiveXSite.cs
- FlowDocumentReaderAutomationPeer.cs
- HttpCookieCollection.cs
- SystemUnicastIPAddressInformation.cs
- CodeDirectiveCollection.cs
- DynamicResourceExtension.cs
- SecureStringHasher.cs
- SmiXetterAccessMap.cs
- PropertyDescriptor.cs
- DataViewManager.cs
- StateMachineAction.cs
- InternalDispatchObject.cs
- DBSqlParserColumnCollection.cs
- GridPattern.cs
- Stylesheet.cs
- SocketPermission.cs
- SmiContext.cs
- HostingEnvironmentException.cs
- GraphicsState.cs
- AttachmentCollection.cs
- SizeAnimation.cs
- PermissionListSet.cs
- ApplicationServiceHelper.cs
- TagNameToTypeMapper.cs
- ComponentResourceKey.cs
- SurrogateSelector.cs
- externdll.cs
- UrlPath.cs
- PackagingUtilities.cs
- TemplateBuilder.cs
- ControlPaint.cs
- HandlerBase.cs
- XmlAttributeCache.cs