T3000 CrossPlatform Documentation
TextSource Class |
[This is preliminary documentation and is subject to change.]
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: FastColoredTextBoxNS
Assembly: FastColoredTextBox (in FastColoredTextBox.dll) Version: 2.16.23.0 (2.16.23.0)
Syntax
The TextSource type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TextSource | Initializes a new instance of the TextSource class |
Properties
Name | Description | |
---|---|---|
Count |
Lines count
| |
CurrentTB |
Current focused FastColoredTextBox
| |
DefaultStyle |
Default text style
This style is using when no one other TextStyle is not defined in Char.style
| |
IsNeedBuildRemovedLineIds | ||
IsReadOnly | ||
Item | ||
Manager |
Methods
Name | Description | |
---|---|---|
Add | ||
BinarySearch | ||
Clear | ||
ClearIsChanged | ||
Contains | ||
CopyTo | ||
CreateLine | ||
Dispose | Releases all resources used by the TextSource | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GenerateUniqueLineId | ||
GetEnumerator | ||
GetHashCode | (Inherited from Object.) | |
GetLineLength | ||
GetLines |
Text lines
| |
GetType | (Inherited from Object.) | |
IndexOf | ||
InitDefaultStyle | ||
Insert | ||
InsertLine | ||
IsLineLoaded | ||
LineHasFoldingEndMarker | ||
LineHasFoldingStartMarker | ||
MemberwiseClone | (Inherited from Object.) | |
NeedRecalc | ||
OnLineInserted(Int32) | ||
OnLineInserted(Int32, Int32) | ||
OnLineRemoved | ||
OnRecalcWordWrap | ||
OnTextChanged | ||
OnTextChanging | ||
OnTextChanging(String) | ||
Remove | ||
RemoveAt | ||
RemoveLine(Int32) | ||
RemoveLine(Int32, Int32) | ||
SaveToFile | ||
ToString | (Inherited from Object.) |
Events
Name | Description | |
---|---|---|
CurrentTBChanged |
Occurs after CurrentTB was changed
| |
LineInserted |
Occurs when line was inserted/added
| |
LineRemoved |
Occurs when line was removed
| |
RecalcNeeded |
Occurs when recalc is needed
| |
RecalcWordWrap |
Occurs when recalc wordwrap is needed
| |
TextChanged |
Occurs when text was changed
| |
TextChanging |
Occurs before text changing
|
Fields
Name | Description | |
---|---|---|
lines | ||
linesAccessor | ||
Styles |
Styles
|
See Also