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