ITextExporter Interface
Provides the base requirements for a class that can export text to some other format, such as HTML or RTF markup.
public interface ITextExporter
Properties
DataFormat
A string that describes the data format this exporter creates.
LineTerminator
A LineTerminator specifying the type of line terminator to use;
or null to use the inferred line terminator from the source ITextSnapshot.
Methods
Export(ITextSnapshot, ICollection<TextRange>)
Exports the specified ITextSnapshot ranges to another text format.
string Export(ITextSnapshot snapshot, ICollection<TextRange> textRanges)
| Parameter | Type | Description |
|---|---|---|
| snapshot | ITextSnapshot | The ITextSnapshot from which to export. |
| textRanges | ICollection<TextRange> | The collection of text ranges in the snapshot for which to export. |
Returns
- string:
The string that was created to represent the text ranges.