/// <devdoc> /// <para>Adds header cell attributes to the list of attributes to render.</para> /// </devdoc> protected override void AddAttributesToRender(HtmlTextWriter writer) { base.AddAttributesToRender(writer); TableHeaderScope scope = Scope; if (scope != TableHeaderScope.NotSet) { if (scope == TableHeaderScope.Column) { writer.AddAttribute(HtmlTextWriterAttribute.Scope, "col"); } else { writer.AddAttribute(HtmlTextWriterAttribute.Scope, "row"); } } String abbr = AbbreviatedText; if (!String.IsNullOrEmpty(abbr)) { writer.AddAttribute(HtmlTextWriterAttribute.Abbr, abbr); } }
/// <internalonly/> /// <devdoc> /// <para>Adds header cell attributes to the list of attributes to render.</para> /// </devdoc> protected override void AddAttributesToRender(HtmlTextWriter writer) { base.AddAttributesToRender(writer); TableHeaderScope scope = Scope; if (scope != TableHeaderScope.NotSet) { writer.AddAttribute(HtmlTextWriterAttribute.Scope, scope.ToString().ToLowerInvariant()); } String abbr = AbbreviatedText; if (!String.IsNullOrEmpty(abbr)) { writer.AddAttribute(HtmlTextWriterAttribute.Abbr, abbr); } string[] arr = CategoryText; if (arr.Length > 0) { bool first = true; StringBuilder builder = new StringBuilder(); foreach (string s in arr) { if (first) { first = false; } else { builder.Append(","); } builder.Append(s); } string val = builder.ToString(); if (!String.IsNullOrEmpty(val)) { writer.AddAttribute(HtmlTextWriterAttribute.Axis, val); } } }
protected override void AddAttributesToRender(HtmlTextWriter writer) { base.AddAttributesToRender(writer); TableHeaderScope scope = this.Scope; if (scope != TableHeaderScope.NotSet) { writer.AddAttribute(HtmlTextWriterAttribute.Scope, scope.ToString().ToLowerInvariant()); } string abbreviatedText = this.AbbreviatedText; if (!string.IsNullOrEmpty(abbreviatedText)) { writer.AddAttribute(HtmlTextWriterAttribute.Abbr, abbreviatedText); } string[] categoryText = this.CategoryText; if (categoryText.Length > 0) { bool flag = true; StringBuilder builder = new StringBuilder(); foreach (string str2 in categoryText) { if (flag) { flag = false; } else { builder.Append(","); } builder.Append(str2); } string str3 = builder.ToString(); if (!string.IsNullOrEmpty(str3)) { writer.AddAttribute(HtmlTextWriterAttribute.Axis, str3); } } }
internal DataControlFieldHeaderCell (DataControlField containerField, TableHeaderScope scope): this (containerField) { this.scope = scope; }
internal DataControlFieldHeaderCell(DataControlField containerField, TableHeaderScope scope) : this(containerField) { this.scope = scope; }