RichTextField.RenderHtmlForInput Method
Renders the HTML markup that may contain Web part markup so that the HTML can be used inside a content editable HTML element.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Protected Sub RenderHtmlForInput ( _
output As HtmlTextWriter, _
html As String _
)
'Usage
Dim output As HtmlTextWriter
Dim html As String
Me.RenderHtmlForInput(output, html)
protected void RenderHtmlForInput(
HtmlTextWriter output,
string html
)
Parameters
output
Type: System.Web.UI.HtmlTextWriterThe ASP.NET server control output stream.
html
Type: System.StringThe string to write to the output stream.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when output is a null reference (Nothing in Visual Basic). |