Rock.Web.UI.Controls.CodeEditor.RenderControl C# (CSharp) Method

RenderControl() public method

Outputs server control content to a provided T:System.Web.UI.HtmlTextWriter object and stores tracing information about the control if tracing is enabled.
public RenderControl ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The object that receives the control content.
return void
        public override void RenderControl( HtmlTextWriter writer )
        {
            if ( this.Visible )
            {
                RockControlHelper.RenderControl( this, writer );
            }
        }

Usage Example

Example #1
0
        /// <summary>
        /// Outputs server control content to a provided <see cref="T:System.Web.UI.HtmlTextWriter" /> object and stores tracing information about the control if tracing is enabled.
        /// </summary>
        /// <param name="writer">The <see cref="T:System.Web.UI.HtmlTextWriter" /> object that receives the control content.</param>
        public override void RenderControl(HtmlTextWriter writer)
        {
            if (this.Visible)
            {
                if (this.StartInCodeEditorMode)
                {
                    _ceEditor.Text = this.Text;
                    this.Text      = "";
                }

                RockControlHelper.RenderControl(this, writer);
                _hfDisableVrm.RenderControl(writer);
                _hfInCodeEditorMode.RenderControl(writer);
                _ceEditor.RenderControl(writer);
            }
        }
All Usage Examples Of Rock.Web.UI.Controls.CodeEditor::RenderControl