New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Container of miscellaneous export settings for the RadEditor control.

Definition

Namespace:Telerik.Web.UI.Editor.Export

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public abstract class RadEditorExportTemplate

Inheritance: objectRadEditorExportTemplate

Derived Classes: ApocPdfGenerator

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public RadEditorExportTemplate(RadEditor radEditor)
Parameters:radEditorRadEditor

Fields

The editor object, set in the constructor.

C#
protected RadEditor editor

Properties

The content type of the editor's Page.Response object.

C#
protected abstract string ContentType { get; }

The ExportType object passed as an argument in the EditorExportingArgs argumet, when editor's OnExport is fired.

C#
protected abstract ExportType ExportType { get; }

The extension of the exported file.

C#
protected abstract string FileExtension { get; }

The Encoding used in WritePageResponse method.

C#
protected virtual Encoding ResponseWriteEncoding { get; }

XmlDocument where the editor's content is loaded in the InitializeXmlContent method.

C#
protected XmlDocument XmlContent { get; set; }

The default xml template string used in the GenerateXmlStirng method.

C#
protected virtual string XmlTemplate { get; }

{0} is the dtd, {1} is the title, {2} is the content.

Methods

Confugures the editor's Page.Response for writing.

C#
protected virtual void ConfigureResponse()

This method is used to export the editor's content.

C#
public virtual void Export()

Fires OnExportEvent of the editor.

C#
protected virtual void FireEditorOnExportEvent(string output)
Parameters:outputstring

This method is used to generate the output string, wich is generated based on the editor's content.

C#
protected abstract string GenerateOutput()
Returns:

string

Generate xml string, which is loaded in the GetXmlDocument method.

C#
protected virtual string GenerateXmlStirng(string pageTitle, string content)
Parameters:pageTitlestringcontentstringReturns:

string

C#
protected virtual string GetHtmlContent()
Returns:

string

Initializes the XmlContent property as the first step of the template.

C#
protected virtual void InitializeXmlContent()

The XmlContent property can be used later in the GenerateOutput method.

Make some validation modifications to the editor's content before loading it in the GetXmlDocument method.

C#
protected virtual string ValidateContentForExport(string content)
Parameters:contentstringReturns:

string

Writes the string output to the editor's Page.Response property.

C#
protected virtual void WritePageResponse(string output)
Parameters:outputstring