Ext.Net.HtmlEditorDesigner.XGetDesignTimeHtml C# (CSharp) Method

XGetDesignTimeHtml() private method

private XGetDesignTimeHtml ( ) : string
return string
        public override string XGetDesignTimeHtml()
        {
            StringWriter writer = new StringWriter(CultureInfo.CurrentCulture);
            HtmlTextWriter htmlWriter = new HtmlTextWriter(writer);

            HtmlEditor c = (HtmlEditor)this.Control;

            string width = " width: {0};".FormatWith((c.Width != Unit.Empty) ? c.Width.ToString() : "504px");
            string height = " height: {0};".FormatWith((c.Height != Unit.Empty) ? c.Height.ToString() : "275px");

            /*
            * 0 - ClientID
            * 1 - Text
            * 2 - Width
            * 3 - Height
            * 4 - Font
            * 5 - Format
            * 6 - FontSize
            * 7 - Colors
            * 8 - Alignments
            * 9 - Links
            * 10 - Lists
            * 11- SourceEdit
            */

            object[] args = new object[12];
            args[0] = c.ClientID;
            args[1] = c.Text;
            args[2] = width;
            args[3] = height;
            args[4] = (c.EnableFont) ? this.Font : "";
            args[5] = (c.EnableFormat) ? this.Format : "";
            args[6] = (c.EnableFontSize) ? this.FontSize : "";
            args[7] = (c.EnableColors) ? this.Colors : "";
            args[8] = (c.EnableAlignments) ? this.Alignments : "";
            args[9] = (c.EnableLinks) ? this.Links : "";
            args[10] = (c.EnableLists) ? this.Lists : "";
            args[11] = (c.EnableSourceEdit) ? this.SourceEdit : "";

            LiteralControl ctrl = new LiteralControl(string.Format(this.Html, args));
            ctrl.RenderControl(htmlWriter);

            return writer.ToString();
        }
HtmlEditorDesigner