AvalonEdit
StringTextSource Class
NamespacesICSharpCode.AvalonEdit.DocumentStringTextSource
Implements the ITextSource interface using a string.
Declaration Syntax
C#Visual BasicVisual C++
[SerializableAttribute]
public class StringTextSource : ITextSource
<SerializableAttribute> _
Public Class StringTextSource _
	Implements ITextSource
[SerializableAttribute]
public ref class StringTextSource : ITextSource
Members
All MembersConstructorsMethodsPropertiesFields



IconMemberDescription
StringTextSource(String)
Creates a new StringTextSource with the given text.

StringTextSource(String, ITextSourceVersion)
Creates a new StringTextSource with the given text.

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.

Empty
Gets a text source containing the empty string.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(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.)
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.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
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
StringTextSource

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