In This Article

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.

string DataFormat { get; }

Property Value

string

LineTerminator

A LineTerminator specifying the type of line terminator to use; or null to use the inferred line terminator from the source ITextSnapshot.

LineTerminator? LineTerminator { get; set; }

Property Value

LineTerminator?

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.

Extension Methods