Creates a snapshot of the current text.

C# | Visual Basic | Visual C++ |
public ITextSource CreateSnapshot()
Public Function CreateSnapshot As ITextSource
public: virtual ITextSource^ CreateSnapshot() sealed

This method returns an immutable snapshot of the document, and may be safely called even when the document's owner thread is concurrently modifying the document.
This special thread-safety guarantee is valid only for TextDocument.CreateSnapshot(), not necessarily for other classes implementing ITextSource.CreateSnapshot().
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238