CreateSnapshot Method (offset, length)
NamespacesICSharpCode.AvalonEdit.DocumentTextDocumentCreateSnapshot(Int32, Int32)
Creates a snapshot of a part of the current text.
Declaration Syntax
C#Visual BasicVisual C++
public ITextSource CreateSnapshot(
	int offset,
	int length
Public Function CreateSnapshot ( _
	offset As Integer, _
	length As Integer _
) As ITextSource
virtual ITextSource^ CreateSnapshot(
	int offset, 
	int length
) sealed
offset (Int32)
length (Int32)

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: