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

Gets a string that describes the data format this exporter creates.

string DataFormat { get; }

Property Value

string:

A string that describes the data format this exporter creates.

LineTerminator

Gets or sets the LineTerminator specifying the type of line terminators to use.

LineTerminator LineTerminator { get; set; }

Property Value

LineTerminator:

The LineTerminator specifying the type of line terminators to use.

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.