Example #1
0
 /// <summary>
 /// Renders the item's contents
 /// </summary>
 /// <param name="writer">The HtmlTextWriter object that receives the content.</param>
 /// <param name="renderPath">The RenderPathID.</param>
 private void RenderContents(HtmlTextWriter writer, RenderPathID renderPath)
 {
     foreach (ToolbarCheckButton btn in Items)
     {
         btn.Render(writer, renderPath);
     }
 }
Example #2
0
        /// <summary>
        /// Outputs content to a provided HtmlTextWriter output stream.
        /// </summary>
        /// <param name="writer">The HtmlTextWriter object that receives the control content.</param>
        /// <param name="pathID">The ID (from BaseRichControl) of the rendering path to use.</param>
        protected internal virtual void Render(HtmlTextWriter writer, RenderPathID pathID)
        {
            switch (pathID)
            {
            case RenderPathID.DownLevelPath:
                RenderDownLevelPath(writer);
                break;

            case RenderPathID.UpLevelPath:
                RenderUpLevelPath(writer);
                break;

            case RenderPathID.DesignerPath:
                RenderDesignerPath(writer);
                break;
            }
        }
 /// <summary>
 /// Renders the item's contents
 /// </summary>
 /// <param name="writer">The HtmlTextWriter object that receives the content.</param>
 /// <param name="renderPath">The RenderPathID.</param>
 private void RenderContents(HtmlTextWriter writer, RenderPathID renderPath)
 {
     foreach (ToolbarCheckButton btn in Items)
     {
         btn.Render(writer, renderPath);
     }
 }
Example #4
0
        /// <summary>
        /// Outputs content to a provided HtmlTextWriter output stream.
        /// </summary>
        /// <param name="writer">The HtmlTextWriter object that receives the control content.</param>
        /// <param name="pathID">The ID (from BaseRichControl) of the rendering path to use.</param>
        protected internal virtual void Render(HtmlTextWriter writer, RenderPathID pathID)
        {
            switch (pathID)
            {
                case RenderPathID.DownLevelPath:
                    RenderDownLevelPath(writer);
                    break;

                case RenderPathID.UpLevelPath:
                    RenderUpLevelPath(writer);
                    break;

                case RenderPathID.DesignerPath:
                    RenderDesignerPath(writer);
                    break;
            }
        }