Class Exporter
Represents a class for exporting data to different formats.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Edit.Utils
Assembly: Syncfusion.Edit.Windows.dll
Syntax
public class Exporter
Constructors
Exporter()
Initializes a new instance of the Exporter class.
Declaration
public Exporter()
Exporter(LexemParser)
Initializes a new instance of the Exporter class.
Declaration
public Exporter(LexemParser parser)
Parameters
Type | Name | Description |
---|---|---|
LexemParser | parser | Underlying parser. |
Exporter(String)
Initializes a new instance of the Exporter class. Local underlying parser is created.
Declaration
public Exporter(string language)
Parameters
Type | Name | Description |
---|---|---|
System.String | language | Language to use for text colouring. |
Properties
Parser
Gets or sets the underlying parser.
Declaration
public LexemParser Parser { get; set; }
Property Value
Type |
---|
LexemParser |
Methods
GetCSS()
Gets CSS part of HTML code.
Declaration
public string GetCSS()
Returns
Type | Description |
---|---|
System.String | String with �SS code. |
GetHTML()
Gets text represented as HTML.
Declaration
public string GetHTML()
Returns
Type | Description |
---|---|
System.String | String with HTML code. |
GetHTML(CoordinatePoint, CoordinatePoint)
Returns text situated between specified coordinate points represented as HTML.
Declaration
public string GetHTML(CoordinatePoint start, CoordinatePoint end)
Parameters
Type | Name | Description |
---|---|---|
CoordinatePoint | start | Point representing start of the text. |
CoordinatePoint | end | Point representing end of the text. |
Returns
Type | Description |
---|---|
System.String | String with desired text represented as HTML. |
GetHTMLBody()
Gets text represented as HTML.
Declaration
public string GetHTMLBody()
Returns
Type | Description |
---|---|
System.String | String with HTML code. |
GetHTMLBreakTags()
Gets text represented as HTML.
Declaration
public string GetHTMLBreakTags()
Returns
Type | Description |
---|---|
System.String | String with HTML code. |
GetRTF()
Gets text represented as RTF.
Declaration
public string GetRTF()
Returns
Type | Description |
---|---|
System.String | String with RTF code. |
GetRTF(CoordinatePoint, CoordinatePoint)
Returns text situated between specified coordinate points represented as RTF.
Declaration
public string GetRTF(CoordinatePoint start, CoordinatePoint end)
Parameters
Type | Name | Description |
---|---|---|
CoordinatePoint | start | Point representing start of the text. |
CoordinatePoint | end | Point representing end of the text. |
Returns
Type | Description |
---|---|
System.String | String with desired text represented as RTF. |
GetXML()
Gets text represented as XML.
Declaration
public string GetXML()
Returns
Type | Description |
---|---|
System.String | String with XML code. |
GetXML(CoordinatePoint, CoordinatePoint)
Returns text situated between specified coordinate points represented as XML.
Declaration
public string GetXML(CoordinatePoint start, CoordinatePoint end)
Parameters
Type | Name | Description |
---|---|---|
CoordinatePoint | start | Point representing start of the text. |
CoordinatePoint | end | Point representing end of the text. |
Returns
Type | Description |
---|---|
System.String | String with desired text represented as XML. |
SaveAsHTML(String, Boolean)
Saves document's HTML representation to the file.
Declaration
public void SaveAsHTML(string filename, bool bUseLineBreakTags)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | Name of the file, the document should be saved to. |
System.Boolean | bUseLineBreakTags | Indicates whether line break tags should be used. |
SaveAsRTF(String)
Saves document's RTF representation to the file.
Declaration
public void SaveAsRTF(string filename)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | Name of the file, the document should be saved to. |
SaveAsXML(String)
Saves document's XML representation to the file.
Declaration
public void SaveAsXML(string filename)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | Name of the file, the document should be saved to. |
SetText(String)
Assigns text to the underlying parser.
Declaration
public void SetText(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | Text to set. |