TxtFormatProvider
Represents a format provider that can import and export plain text documents from/to RadDocument.
Definition
Namespace:Telerik.WinForms.Documents.FormatProviders.Txt
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class TxtFormatProvider : DocumentFormatProviderBase, ITextBasedDocumentFormatProvider, IDocumentFormatProvider
Inheritance: objectDocumentFormatProviderBaseTxtFormatProvider
Implements:
Inherited Members
Constructors
public TxtFormatProvider()
Properties
Gets a value indicating whether this instance can export.
public override bool CanExport { get; }
true if this instance can export; otherwise, false.
Overrides:
Implements:
Gets a value indicating whether this instance can import.
public override bool CanImport { get; }
true if this instance can import; otherwise, false.
Overrides:
Implements:
Gets the description of the supported file formats.
public override string FilesDescription { get; }
The files description.
Overrides:
Implements:
Gets the name of the specific format provider.
public override string Name { get; }
The name.
Overrides:
Implements:
SupportedExtensions
IEnumerable<string>
Gets the extensions supported by this format provider.
public override IEnumerable<string> SupportedExtensions { get; }
The supported extensions.
Overrides:
Implements:
Methods
Exports the specified RadDocument instance to plain text.
public override void Export(RadDocument document, Stream output)
The document.
outputStreamThe Stream the document should be saved into.
Overrides:
Implements:
Exports the specified document to a string.
public string Export(RadDocument document)
The document.
Returns:A string containing the document.
Implements:
Imports the specified Stream into a RadDocument instance.
public override RadDocument Import(Stream input)
The Stream containing the document data.
Returns:The generated RadDocument instance.
Overrides:
Implements:
Imports the specified string.
public RadDocument Import(string input)
The string containing the document.
Returns:The generated RadDocument instance.
Implements: