A read-only view on a (potentially mutable) text source.
The IDocument interface derives from this interface.
| C# | Visual Basic | Visual C++ |
public interface ITextSource
Public Interface ITextSource
public interface class ITextSource
| All Members | Methods | Properties | |||
| Icon | Member | Description |
|---|---|---|
| CreateReader()()()() |
Creates a new TextReader to read from this text source.
| |
| CreateReader(Int32, Int32) |
Creates a new TextReader to read from this text source.
| |
| CreateSnapshot()()()() |
Creates an immutable snapshot of this text source.
Unlike all other methods in this interface, this method is thread-safe.
| |
| CreateSnapshot(Int32, Int32) |
Creates an immutable snapshot of a part of this text source.
Unlike all other methods in this interface, this method is thread-safe.
| |
| GetCharAt(Int32) |
Gets a character at the specified position in the document.
| |
| GetText(Int32, Int32) |
Retrieves the text for a portion of the document.
| |
| GetText(ISegment) |
Retrieves the text for a portion of the document.
| |
| IndexOf(Char, Int32, Int32) |
Gets the index of the first occurrence of the character in the specified array.
| |
| IndexOf(String, Int32, Int32, StringComparison) |
Gets the index of the first occurrence of the specified search text in this text source.
| |
| IndexOfAny(array<Char>[]()[][], Int32, Int32) |
Gets the index of the first occurrence of any character in the specified array.
| |
| LastIndexOf(Char, Int32, Int32) |
Gets the index of the last occurrence of the specified character in this text source.
| |
| LastIndexOf(String, Int32, Int32, StringComparison) |
Gets the index of the last occurrence of the specified search text in this text source.
| |
| Text |
Gets the whole text as string.
| |
| TextLength |
Gets the total text length.
| |
| Version |
Gets a version identifier for this text source.
Returns null for unversioned text sources.
| |
| WriteTextTo(TextWriter) |
Writes the text from this document into the TextWriter.
| |
| WriteTextTo(TextWriter, Int32, Int32) |
Writes the text from this document into the TextWriter.
|
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238