TextSnapshotToTextReader Class
Provides a TextReader facade over a text snapshot.
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
System.IO.TextReader
Microsoft.VisualStudio.Text.TextSnapshotToTextReader
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Deklaracja
Public NotInheritable Class TextSnapshotToTextReader _
Inherits TextReader
public sealed class TextSnapshotToTextReader : TextReader
public ref class TextSnapshotToTextReader sealed : public TextReader
[<Sealed>]
type TextSnapshotToTextReader =
class
inherit TextReader
end
public final class TextSnapshotToTextReader extends TextReader
The TextSnapshotToTextReader type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
TextSnapshotToTextReader | Initializes a new instance of TextSnapshotToTextReader with the specified text snapshot. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Close | Closes the reader and releases associated resources. (Overrides TextReader.Close().) |
![]() |
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
![]() |
Dispose() | Releases all resources used by the TextReader object. (Inherited from TextReader.) |
![]() |
Dispose(Boolean) | Releases the unmanaged resources used by the TextReader and optionally releases the managed resources. (Inherited from TextReader.) |
![]() |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() |
MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
![]() |
Peek | Returns the next character without changing the state of the reader or the character source. (Overrides TextReader.Peek().) |
![]() |
Read() | Reads the next character from the input stream and advances the character position by one character. (Overrides TextReader.Read().) |
![]() |
Read(array<Char[], Int32, Int32) | Reads the specified number of characters from the current stream and writes the data to the buffer, beginning at the specified location. (Overrides TextReader.Read(array<Char[], Int32, Int32).) |
![]() |
ReadBlock | Reads a maximum of count characters from the current stream and writes the data to the buffer, beginning at index. (Overrides TextReader.ReadBlock(array<Char[], Int32, Int32).) |
![]() |
ReadLine | Reads a line of characters from the current stream and returns the data as a string. (Overrides TextReader.ReadLine().) |
![]() |
ReadToEnd | Reads all the characters from the current position to the end of the reader and returns them as a string. (Overrides TextReader.ReadToEnd().) |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.