Table of Contents

Interface ITextSource

Namespace
Alternet.Editor.TextSource
Assembly
Alternet.Editor.v9.dll

Represents properties and methods that provide interface between edited text and Edit control.

public interface ITextSource : IEdit, INavigate, IUndo, ITextNotify, INotify, IUpdate, INotifier, ITextImport, IImport, ITextExport, IExport, IHyperText, ISpelling, IBraceMatching, ITextParsing, ITextSnippets, ITextErrors, ITextThread, ICodeActions

Properties

ActiveEdit

When implemented by a class, gets or sets an object that represent currently active (focused) ISyntaxEdit control linked to the text source.

BookMarks

When implemented by a class, represents an object that implements IBookMarks interface holding collection of IBookMark objects each determining particular bookmark within the text source.

Edits

When implemented by a class, represents a collection of ISyntaxEdit controls linked to the text source.

FileName

When implemented by a class, gets or sets the name of the file that holds text source content.

GlobalSearch

When implemented by a class, specifies whether search should be global.

HighlightMatchingBlocks

When implemented by a class, specifies that edit control should highlight begin/end blocks.

HighlightReferences

When implemented by a class, specifies that edit control should highlight found references.

LineStyles

When implemented by a class, represents an object that implements ILineStyles interface holding collection of line styles for this document.

Lines

When implemented by a class, represents the object that implements ITextStrings interface containing collection of strings determining text source content.

OptimizedForMemory

When implemented by a class, specifies whether internal text representation should optimized memory usage.

References

When implemented by a class, gets or sets IRangeList of found references for Edit control.

SearchResults

When implemented by a class, gets IRangeList of search results highlighted by TempHighlightSearchResults.

SymbolReference

When implemented by a class, gets or sets IRange of the symbol reference for Edit control.

Text

When implemented by a class, gets or sets text source content as a single string with the individual strings delimited by carriage returns.

ThreadAction

When implemented by a class, returns method executed in thread when parsing.

Methods

AbsolutePositionToTextPoint(int)

When implemented by a class, converts given absolute position to position as Point value.

CancelParsing()

When implemented by a class, stops formatting timer.

Clear()

When implemented by a class, clears content of the TextSource

CreateStringItem(string)

Create a new IStrItem object containing specified text.

GetCharIndexFromPosition(Point)

When implemented by a class, converts given Point value to the index of character.

GetPositionFromCharIndex(int)

When implemented by a class, converts given character index to position as Point value.

TempHighlightReferences()

When implemented by a class, highlights found references.

TempHighlightSearchResults(IRangeList)

When implemented by a class, highlights search results.

TempHighlightSelectedWords(IRangeList)

When implemented by a class, highlights selected words.

TempUnhighlightReferences()

When implemented by a class, unhighlights references highlighted with previous call of TempHighlightReferences.

TempUnhighlightSearchResults()

When implemented by a class, unhighlights search results highlighted with previous call of TempHighlightSearchResults.

TempUnhighlightSelectedWords()

When implemented by a class, unhighlights selected words highlighted with previous call of TempHighlightSelectedWords.

TextPointToAbsolutePosition(Point)

When implemented by a class, converts given Point value to the absolute position.