Compartilhar via


ITextSnapshot.Write Method

Definition

Overloads

Write(TextWriter)

Writes the contents of the snapshot.

Write(TextWriter, Span)

Writes a substring of the contents of the snapshot.

Write(TextWriter)

Writes the contents of the snapshot.

public:
 void Write(System::IO::TextWriter ^ writer);
public void Write (System.IO.TextWriter writer);
abstract member Write : System.IO.TextWriter -> unit
Public Sub Write (writer As TextWriter)

Parameters

writer
TextWriter

The TextWriterto use.

Exceptions

writer is null.

Applies to

Write(TextWriter, Span)

Writes a substring of the contents of the snapshot.

public:
 void Write(System::IO::TextWriter ^ writer, Microsoft::VisualStudio::Text::Span span);
public void Write (System.IO.TextWriter writer, Microsoft.VisualStudio.Text.Span span);
abstract member Write : System.IO.TextWriter * Microsoft.VisualStudio.Text.Span -> unit
Public Sub Write (writer As TextWriter, span As Span)

Parameters

writer
TextWriter

The TextWriter to use.

span
Span

The span of text to write.

Exceptions

writer is null.

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

Applies to