Example #1
0
        // new in Fx 1.1 SP1 (to support Caption and CaptionAlign)

        public override void RenderBeginTag(HtmlTextWriter writer)
        {
            base.RenderBeginTag(writer);

            string s = Caption;

            if (s.Length > 0)
            {
                TableCaptionAlign tca = CaptionAlign;
                if (tca != TableCaptionAlign.NotSet)
                {
                    writer.AddAttribute(HtmlTextWriterAttribute.Align, tca.ToString());
                }

                writer.RenderBeginTag(HtmlTextWriterTag.Caption);
                writer.Write(s);
                writer.RenderEndTag();
            }
        }
Example #2
0
        // new in Fx 1.1 SP1 (to support Caption and CaptionAlign)

        public override void RenderBeginTag(HtmlTextWriter writer)
        {
            base.RenderBeginTag(writer);

            string s = Caption;

            if (s.Length > 0)
            {
                TableCaptionAlign tca = CaptionAlign;
                if (tca != TableCaptionAlign.NotSet)
                {
                    writer.AddAttribute(HtmlTextWriterAttribute.Align, tca.ToString());
                }

                writer.RenderBeginTag(HtmlTextWriterTag.Caption);
                writer.Write(s);
                writer.RenderEndTag();
            }
// #if !NET_4_0
//          else if (HasControls ()) {
//              writer.Indent++;
//          }
// #endif
        }