Exemplo n.º 1
0
        /// <summary>
        /// Renders the item for visual designers.
        /// </summary>
        /// <param name="htmlWriter">The HtmlTextWriter object that receives the content.</param>
        protected override void RenderDesignerPath(HtmlTextWriter htmlWriter)
        {
            HtmlInlineWriter writer = new HtmlInlineWriter(htmlWriter);

            if (Orientation == Orientation.Vertical)
            {
                writer.RenderBeginTag(HtmlTextWriterTag.Tr);
            }

            CurrentStyle.AddAttributesToRender(writer);
            writer.AddAttribute(HtmlTextWriterAttribute.Nowrap, null);

            writer.RenderBeginTag(HtmlTextWriterTag.Td);

            DesignerContent(writer);

            writer.RenderEndTag();

            writer.AllowNewLine = true;
            writer.WriteLine();

            if (Orientation == Orientation.Vertical)
            {
                writer.RenderEndTag();
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Renders the item for downlevel browsers.
        /// </summary>
        /// <param name="htmlWriter">The HtmlTextWriter object that receives the content.</param>
        protected override void RenderDownLevelPath(HtmlTextWriter htmlWriter)
        {
            HtmlInlineWriter writer = new HtmlInlineWriter(htmlWriter);

            if (Orientation == Orientation.Vertical)
            {
                writer.RenderBeginTag(HtmlTextWriterTag.Tr);
            }

            CurrentStyle.AddAttributesToRender(writer);
            writer.AddAttribute(HtmlTextWriterAttribute.Nowrap, null);

            if (!Enabled)
            {
                writer.AddAttribute(HtmlTextWriterAttribute.Disabled, "true");
            }

            if (ToolTip != String.Empty)
            {
                writer.AddAttribute(HtmlTextWriterAttribute.Title, ToolTip);
            }

            writer.RenderBeginTag(HtmlTextWriterTag.Td);

            DownLevelContent(writer);

            writer.RenderEndTag();

            writer.AllowNewLine = true;
            writer.WriteLine();

            if (Orientation == Orientation.Vertical)
            {
                writer.RenderEndTag();
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// Renders the item for downlevel browsers.
        /// </summary>
        /// <param name="writer">The HtmlTextWriter object that receives the content.</param>
        protected override void RenderDownLevelPath(HtmlTextWriter writer)
        {
            if (Orientation == Orientation.Vertical)
            {
                writer.RenderBeginTag(HtmlTextWriterTag.Tr);
            }

            HtmlInlineWriter inlineWriter = (writer is HtmlInlineWriter) ? (HtmlInlineWriter)writer : new HtmlInlineWriter(writer);
            CurrentStyle.AddAttributesToRender(inlineWriter);
            inlineWriter.AddAttribute(HtmlTextWriterAttribute.Nowrap, null);
            inlineWriter.RenderBeginTag(HtmlTextWriterTag.Td);

            DownLevelContent(inlineWriter);

            inlineWriter.RenderEndTag();

            if (Orientation == Orientation.Vertical)
            {
                writer.RenderEndTag();
            }
            // If the inline writer was passed in, then the WriteLine won't happen
            writer.WriteLine();
        }
Exemplo n.º 4
0
        /// <summary>
        /// Renders the item for downlevel browsers.
        /// </summary>
        /// <param name="htmlWriter">The HtmlTextWriter object that receives the content.</param>
        protected override void RenderDownLevelPath(HtmlTextWriter htmlWriter)
        {
            HtmlInlineWriter writer = new HtmlInlineWriter(htmlWriter);
            if (Orientation == Orientation.Vertical)
            {
                writer.RenderBeginTag(HtmlTextWriterTag.Tr);
            }

            CurrentStyle.AddAttributesToRender(writer);
            writer.AddAttribute(HtmlTextWriterAttribute.Nowrap, null);

            if (!Enabled)
            {
                writer.AddAttribute(HtmlTextWriterAttribute.Disabled, "true");
            }

            if (ToolTip != String.Empty)
            {
                writer.AddAttribute(HtmlTextWriterAttribute.Title, ToolTip);
            }

            writer.RenderBeginTag(HtmlTextWriterTag.Td);

            DownLevelContent(writer);

            writer.RenderEndTag();

            writer.AllowNewLine = true;
            writer.WriteLine();

            if (Orientation == Orientation.Vertical)
            {
                writer.RenderEndTag();
            }
        }
Exemplo n.º 5
0
        /// <summary>
        /// Renders the item for visual designers.
        /// </summary>
        /// <param name="htmlWriter">The HtmlTextWriter object that receives the content.</param>
        protected override void RenderDesignerPath(HtmlTextWriter htmlWriter)
        {
            HtmlInlineWriter writer = new HtmlInlineWriter(htmlWriter);
            if (Orientation == Orientation.Vertical)
            {
                writer.RenderBeginTag(HtmlTextWriterTag.Tr);
            }

            CurrentStyle.AddAttributesToRender(writer);
            writer.AddAttribute(HtmlTextWriterAttribute.Nowrap, null);

            writer.RenderBeginTag(HtmlTextWriterTag.Td);

            DesignerContent(writer);

            writer.RenderEndTag();

            writer.AllowNewLine = true;
            writer.WriteLine();

            if (Orientation == Orientation.Vertical)
            {
                writer.RenderEndTag();
            }
        }