Share via


TextSnapshotToTextReader(ITextSnapshot) Constructor

Definition

Initializes a new instance of TextSnapshotToTextReader with the specified text snapshot.

public:
 TextSnapshotToTextReader(Microsoft::VisualStudio::Text::ITextSnapshot ^ textSnapshot);
public:
 TextSnapshotToTextReader(Microsoft::VisualStudio::Text::ITextSnapshot ^ textSnapshot);
 TextSnapshotToTextReader(Microsoft::VisualStudio::Text::ITextSnapshot const & textSnapshot);
public TextSnapshotToTextReader (Microsoft.VisualStudio.Text.ITextSnapshot textSnapshot);
new Microsoft.VisualStudio.Text.TextSnapshotToTextReader : Microsoft.VisualStudio.Text.ITextSnapshot -> Microsoft.VisualStudio.Text.TextSnapshotToTextReader
Public Sub New (textSnapshot As ITextSnapshot)

Parameters

textSnapshot
ITextSnapshot

The ITextSnapshot to expose as a reader.

Exceptions

textSnapshot is null.

Applies to