C# Class Rock.Web.UI.Controls.CodeEditor

Inheritance: System.Web.UI.WebControls.TextBox, IRockControl
Show file Open project: NewSpring/Rock Class Usage Examples

Private Properties

Property Type Description
EditorModeAsString string
EditorThemeAsString string

Public Methods

Method Description
CodeEditor ( ) : System

Initializes a new instance of the RockTextBox class.

MergeFields_SelectItem ( object sender, EventArgs e ) : void

Handles the SelectItem event of the MergeFields control.

RenderBaseControl ( System.Web.UI.HtmlTextWriter writer ) : void

Renders the base control.

RenderControl ( System.Web.UI.HtmlTextWriter writer ) : void

Outputs server control content to a provided T:System.Web.UI.HtmlTextWriter object and stores tracing information about the control if tracing is enabled.

Protected Methods

Method Description
CreateChildControls ( ) : void

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.

LoadPostData ( string postDataKey, System postCollection ) : bool

Processes the postback data for the T:System.Web.UI.WebControls.TextBox control.

OnInit ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Init event.

Private Methods

Method Description
EditorModeAsString ( CodeEditorMode mode ) : string

Gets the mode of the editor as text based on property

EditorThemeAsString ( CodeEditorTheme theme ) : string

Gets the theme of the editor as text based on property

Method Details

CodeEditor() public method

Initializes a new instance of the RockTextBox class.
public CodeEditor ( ) : System
return System

CreateChildControls() protected method

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
protected CreateChildControls ( ) : void
return void

LoadPostData() protected method

Processes the postback data for the T:System.Web.UI.WebControls.TextBox control.
protected LoadPostData ( string postDataKey, System postCollection ) : bool
postDataKey string The index within the posted collection that references the content to load.
postCollection System The collection posted to the server.
return bool

MergeFields_SelectItem() public method

Handles the SelectItem event of the MergeFields control.
public MergeFields_SelectItem ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

OnInit() protected method

Raises the E:System.Web.UI.Control.Init event.
protected OnInit ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
return void

RenderBaseControl() public method

Renders the base control.
public RenderBaseControl ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The writer.
return void

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