AjaxControlToolkit.HtmlEditor.Editor.OnInit C# (CSharp) Метод

OnInit() защищенный Метод

protected OnInit ( EventArgs e ) : void
e System.EventArgs
Результат void
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            EditPanel.Toolbars.Add(BottomToolbar);
            _changingToolbar = TopToolbar;
            EditPanel.Toolbars.Add(TopToolbar);

            var table = new Table();
            TableRow row;
            TableCell cell;

            table.CellPadding = 0;
            table.CellSpacing = 0;
            table.CssClass = "ajax__htmleditor_editor_container";
            table.Style[HtmlTextWriterStyle.BorderCollapse] = "separate";

            _topToolbarRow = row = new TableRow();
            cell = new TableCell();
            cell.Controls.Add(TopToolbar);
            cell.CssClass = "ajax__htmleditor_editor_toptoolbar";

            row.Cells.Add(cell);
            table.Rows.Add(row);

            row = new TableRow();
            _editPanelCell = cell = new TableCell();
            cell.CssClass = "ajax__htmleditor_editor_editpanel";

            cell.Controls.Add(EditPanel);

            row.Cells.Add(cell);
            table.Rows.Add(row);

            _bottomToolbarRow = row = new TableRow();
            cell = new TableCell();

            cell.Controls.Add(BottomToolbar);
            cell.CssClass = "ajax__htmleditor_editor_bottomtoolbar";
            row.Cells.Add(cell);
            table.Rows.Add(row);

            Controls.Add(table);
        }