Condividi tramite


TextSnapshotToTextReader Constructor

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

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaration
Public Sub New ( _
    textSnapshot As ITextSnapshot _
)
public TextSnapshotToTextReader(
    ITextSnapshot textSnapshot
)
public:
TextSnapshotToTextReader(
    ITextSnapshot^ textSnapshot
)
new : 
        textSnapshot:ITextSnapshot -> TextSnapshotToTextReader
public function TextSnapshotToTextReader(
    textSnapshot : ITextSnapshot
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

textSnapshot is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

TextSnapshotToTextReader Class

Microsoft.VisualStudio.Text Namespace