Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlTableCell.cs / 1 / HtmlTableCell.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * HtmlTableCell.cs * * Copyright (c) 2000 Microsoft Corporation */ 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; ////// [ConstructorNeedsTag(true)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class HtmlTableCell : HtmlContainerControl { ////// The ////// class defines the properties, methods, and events for the HtmlTableCell control. /// This class allows programmatic access on the server to individual HTML /// <td> and <th> elements enclosed within an /// /// control. /// /// public HtmlTableCell() : base("td") { } ////// public HtmlTableCell(string tagName) : base(tagName) { } ////// [ 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); } } ////// Gets or sets the horizontal alignment of content 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); } } /* * Number of columns that this cell spans. */ ////// Gets or sets the border color of an ////// control. /// /// [ WebCategory("Layout"), DefaultValue(""), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden) ] public int ColSpan { get { string s = Attributes["colspan"]; return((s != null) ? Int32.Parse(s, CultureInfo.InvariantCulture) : -1); } set { Attributes["colspan"] = MapIntegerAttributeToString(value); } } ////// Gets or sets the number of columns that the HtmlTableCell control spans. /// ////// [ 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); } } /* * Suppresses wrapping. */ ////// Gets or sets the height, in pixels, of an ////// control. /// /// [ WebCategory("Behavior"), DefaultValue(""), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), TypeConverter(typeof(MinimizableAttributeTypeConverter)) ] public bool NoWrap { get { string s = Attributes["nowrap"]; return((s != null) ? (s.Equals("nowrap")) : false); } set { if (value) Attributes["nowrap"] = "nowrap"; else Attributes["nowrap"] = null; } } /* * Number of rows that this cell spans. */ ////// Gets or sets a value indicating whether text within an /// ///control /// should be wrapped. /// /// [ WebCategory("Layout"), DefaultValue(""), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden) ] public int RowSpan { get { string s = Attributes["rowspan"]; return((s != null) ? Int32.Parse(s, CultureInfo.InvariantCulture) : -1); } set { Attributes["rowspan"] = MapIntegerAttributeToString(value); } } ////// Gets or sets the number of rows an ///control /// spans. /// /// [ 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 for text within an /// ///control. /// /// [ WebCategory("Layout"), DefaultValue(""), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden) ] public string Width { get { string s = Attributes["width"]; return((s != null) ? s : String.Empty); } set { Attributes["width"] = MapStringAttributeToString(value); } } ////// Gets or sets the width, in pixels, of an ////// control. /// /// /// protected override void RenderEndTag(HtmlTextWriter writer) { base.RenderEndTag(writer); writer.WriteLine(); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Form.cs
- SqlTypeSystemProvider.cs
- PtsCache.cs
- IriParsingElement.cs
- MimePart.cs
- SchemaElementDecl.cs
- AutoGeneratedFieldProperties.cs
- StructuredTypeInfo.cs
- DataGridPageChangedEventArgs.cs
- StorageMappingItemLoader.cs
- ContainerSelectorActiveEvent.cs
- PersonalizationState.cs
- Subset.cs
- HttpStreamXmlDictionaryReader.cs
- QilInvokeLateBound.cs
- DictionaryManager.cs
- TablePattern.cs
- AttributeEmitter.cs
- DataObject.cs
- ThemeConfigurationDialog.cs
- CalendarDayButton.cs
- HtmlHistory.cs
- DataColumnSelectionConverter.cs
- Int32RectValueSerializer.cs
- MemberHolder.cs
- TimelineGroup.cs
- ToolStripLabel.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ListSortDescription.cs
- ContainerUtilities.cs
- TextTreeUndoUnit.cs
- ObjectCache.cs
- SqlCharStream.cs
- NativeCompoundFileAPIs.cs
- SamlAttribute.cs
- LingerOption.cs
- Cell.cs
- RegexBoyerMoore.cs
- WebPartTransformerCollection.cs
- _NetRes.cs
- sqlmetadatafactory.cs
- ClientRolePrincipal.cs
- StatusBarPanelClickEvent.cs
- UndoEngine.cs
- IFlowDocumentViewer.cs
- XmlAggregates.cs
- _KerberosClient.cs
- WindowsFormsSectionHandler.cs
- FontResourceCache.cs
- FamilyMap.cs
- NonBatchDirectoryCompiler.cs
- Formatter.cs
- ContextStaticAttribute.cs
- CodeObjectCreateExpression.cs
- TreePrinter.cs
- EventBuilder.cs
- DataServiceProviderMethods.cs
- ConstraintEnumerator.cs
- AncestorChangedEventArgs.cs
- ObjectQuery_EntitySqlExtensions.cs
- UserNamePasswordValidator.cs
- XmlSchemaAnnotated.cs
- DataGridViewTextBoxCell.cs
- SqlDataReader.cs
- DataSet.cs
- TreeNodeStyle.cs
- UnsafeNativeMethods.cs
- HandlerMappingMemo.cs
- HashHelper.cs
- ErrorStyle.cs
- ItemsControl.cs
- HostProtectionException.cs
- BinaryOperationBinder.cs
- HttpHostedTransportConfiguration.cs
- EntityClientCacheKey.cs
- PageRanges.cs
- DataSourceSelectArguments.cs
- XamlReader.cs
- XmlTypeAttribute.cs
- ParameterSubsegment.cs
- ActivityMarkupSerializationProvider.cs
- WebPartVerbsEventArgs.cs
- SystemColorTracker.cs
- SignatureResourcePool.cs
- ChannelOptions.cs
- ConfigsHelper.cs
- PathFigure.cs
- QueueProcessor.cs
- ClientBase.cs
- BlobPersonalizationState.cs
- Iis7Helper.cs
- XmlSerializerNamespaces.cs
- XPathNodeIterator.cs
- ModulesEntry.cs
- HttpListenerException.cs
- InlineUIContainer.cs
- LoginName.cs
- GregorianCalendar.cs
- ExceptQueryOperator.cs
- FontSource.cs