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)
Syntax
'Declaration
Sub Write ( _
writer As TextWriter, _
span As Span _
)
void Write(
TextWriter writer,
Span span
)
void Write(
TextWriter^ writer,
Span span
)
abstract Write :
writer:TextWriter *
span:Span -> unit
function Write(
writer : TextWriter,
span : Span
)
Parameters
writer
Type: TextWriterThe TextWriter to use.
span
Type: Microsoft.VisualStudio.Text.SpanThe span of text to write.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | writer is nulla null reference (Nothing in Visual Basic). |
ArgumentOutOfRangeException | The end of the span is greater than the length of the snapshot. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.