Click or drag to resize

FileTextSource Class

This class contains the source text (chars and styles). It stores a text lines, the manager of commands, undo/redo stack, styles.
Inheritance Hierarchy

Namespace:  MathStudio.Core.UI
Assembly:  MathStudio.Core.UI (in MathStudio.Core.UI.dll) Version: 1.0.6611.39599 (1.0.0.0)
Syntax
C#
public class FileTextSource : TextSource, 
	IDisposable

The FileTextSource type exposes the following members.

Constructors
  NameDescription
Public methodFileTextSource
Initializes a new instance of the FileTextSource class
Top
Properties
  NameDescription
Public propertyCount
Lines count
(Inherited from TextSource.)
Public propertyCurrentTB
Current focused MathStudioTextBox
(Inherited from TextSource.)
Public propertyDefaultStyle
Default text style This style is using when no one other TextStyle is not defined in Char.style
(Inherited from TextSource.)
Public propertyIsNeedBuildRemovedLineIds (Inherited from TextSource.)
Public propertyIsReadOnly (Inherited from TextSource.)
Public propertyItem (Overrides TextSourceItemInt32.)
Public propertyManager (Inherited from TextSource.)
Public propertySaveEOL
End Of Line characters used for saving
Top
Methods
  NameDescription
Public methodAdd (Inherited from TextSource.)
Public methodBinarySearch (Inherited from TextSource.)
Public methodClear (Overrides TextSourceClear.)
Public methodClearIsChanged (Overrides TextSourceClearIsChanged.)
Public methodCloseFile
Public methodContains (Inherited from TextSource.)
Public methodCopyTo (Inherited from TextSource.)
Public methodCreateLine (Inherited from TextSource.)
Public methodDispose
Releases all resources used by the FileTextSource
(Overrides TextSourceDispose.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGenerateUniqueLineId (Inherited from TextSource.)
Public methodGetEnumerator (Inherited from TextSource.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetLineLength (Overrides TextSourceGetLineLength(Int32).)
Public methodGetLines
Text lines
(Inherited from TextSource.)
Public methodGetType (Inherited from Object.)
Public methodIndexOf (Inherited from TextSource.)
Public methodInitDefaultStyle (Inherited from TextSource.)
Public methodInsert (Inherited from TextSource.)
Public methodInsertLine (Overrides TextSourceInsertLine(Int32, Line).)
Public methodIsLineLoaded (Inherited from TextSource.)
Public methodLineHasFoldingEndMarker (Overrides TextSourceLineHasFoldingEndMarker(Int32).)
Public methodLineHasFoldingStartMarker (Overrides TextSourceLineHasFoldingStartMarker(Int32).)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodNeedRecalc (Inherited from TextSource.)
Public methodOnLineInserted(Int32) (Inherited from TextSource.)
Public methodOnLineInserted(Int32, Int32) (Inherited from TextSource.)
Public methodOnLineRemoved (Inherited from TextSource.)
Public methodOnRecalcWordWrap (Inherited from TextSource.)
Public methodOnTextChanged (Inherited from TextSource.)
Public methodOnTextChanging (Inherited from TextSource.)
Public methodOnTextChanging(String) (Inherited from TextSource.)
Public methodOpenFile
Public methodRemove (Inherited from TextSource.)
Public methodRemoveAt (Inherited from TextSource.)
Public methodRemoveLine(Int32) (Inherited from TextSource.)
Public methodRemoveLine(Int32, Int32) (Overrides TextSourceRemoveLine(Int32, Int32).)
Public methodSaveToFile (Overrides TextSourceSaveToFile(String, Encoding).)
Public methodToString (Inherited from Object.)
Top
Events
  NameDescription
Public eventCurrentTBChanged
Occurs after CurrentTB was changed
(Inherited from TextSource.)
Public eventLineInserted
Occurs when line was inserted/added
(Inherited from TextSource.)
Public eventLineNeeded
Occurs when need to display line in the textbox
Public eventLinePushed
Occurs when need to save line in the file
Public eventLineRemoved
Occurs when line was removed
(Inherited from TextSource.)
Public eventRecalcNeeded
Occurs when recalc is needed
(Inherited from TextSource.)
Public eventRecalcWordWrap
Occurs when recalc wordwrap is needed
(Inherited from TextSource.)
Public eventTextChanged
Occurs when text was changed
(Inherited from TextSource.)
Public eventTextChanging
Occurs before text changing
(Inherited from TextSource.)
Top
Fields
  NameDescription
Protected fieldlines (Inherited from TextSource.)
Protected fieldlinesAccessor (Inherited from TextSource.)
Public fieldStyles
Styles
(Inherited from TextSource.)
Top
Explicit Interface Implementations
See Also