N2.Web.UI.WebControls.ItemEditorList.CreateControl C# (CSharp) Method

CreateControl() private method

private CreateControl ( Control parent, string tagName, string className ) : System.Web.UI.HtmlControls.HtmlGenericControl
parent System.Web.UI.Control
tagName string
className string
return System.Web.UI.HtmlControls.HtmlGenericControl
        private HtmlGenericControl CreateControl(Control parent, string tagName, string className)
        {
            var hgc = new HtmlGenericControl(tagName);
            parent.Controls.Add(hgc);
            hgc.Attributes["class"] = className;
            return hgc;
        }