ITextSnapshot::Write Method (TextWriter^, Span)

 

Writes a substring of the contents of the snapshot.

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

void Write(
	TextWriter^ writer,
	Span span
)

Parameters

writer
Type: System.IO::TextWriter^

The TextWriter to use.

span
Type: Microsoft.VisualStudio.Text::Span

The span of text to write.

Exception Condition
ArgumentNullException

writer is null.

ArgumentOutOfRangeException

The end of the span is greater than the length of the snapshot.

Return to top
Show: