AvalonEdit
RopeTextSource Class
NamespacesICSharpCode.AvalonEdit.DocumentRopeTextSource
Implements the ITextSource interface using a rope.
Declaration Syntax
C#Visual BasicVisual C++
[SerializableAttribute]
public sealed class RopeTextSource : ITextSource
<SerializableAttribute> _
Public NotInheritable Class RopeTextSource _
	Implements ITextSource
[SerializableAttribute]
public ref class RopeTextSource sealed : ITextSource
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
RopeTextSource(Rope<(Of <<'(Char>)>>))
Creates a new RopeTextSource.

RopeTextSource(Rope<(Of <<'(Char>)>>), ITextSourceVersion)
Creates a new RopeTextSource.

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.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetCharAt(Int32)
Gets a character at the specified position in the document.

GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetRope()()()()
Returns a clone of the rope used for this text source.

GetText(Int32, Int32)
Retrieves the text for a portion of the document.

GetText(ISegment)
Retrieves the text for a portion of the document.

GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
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.

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
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.

Inheritance Hierarchy
Object
RopeTextSource

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238