Table of Contents

Class FmtImport

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

Represents basic class to import Edit control's content from various formats.

public class FmtImport : IFmtImport, IStringImport, IDisposable
Inheritance
FmtImport
Implements
Derived

Remarks

Do not create instances of this class directly; use derived classes like XmlImportet and RtfImporter.

Constructors

FmtImport()

Initializes a new instance of the FmtImporter class with default settings.

Properties

DefaultBackColor

Defines default back color of the text.

DefaultForeColor

Defines default fore color of the text.

DefaultStyle

Defines default font style of the text.

Reader

Methods

BeginRead(TextReader, object)

Starts reading routine.

Dispose()

Release resources of the PropertyChangeNotifier object.

Dispose(bool)
EndRead()

Finalizes reading routine.

~FmtImport()

Destroys the instance of the HtmlImporter class.

GetCurrentAttributes(out Color, out Color, out FontStyle)
GetCurrentItem()
OnReadFormattedText(Color, Color, FontStyle, string)
Pop(string)
Push(string)
Read()

Loads entire content.

ReadContent()
ReadHeader()
WriteBackColor(Color)
WriteFontStyle(FontStyle, bool)
WriteForeColor(Color)
WriteString(string)

Events

ReadFormattedText

Occurs when formatted text is read.