AvalonEdit
GetText Method (offset, length)
NamespacesICSharpCode.AvalonEdit.DocumentRopeTextSourceGetText(Int32, Int32)
Retrieves the text for a portion of the document.
Declaration Syntax
C#Visual BasicVisual C++
public string GetText(
	int offset,
	int length
)
Public Function GetText ( _
	offset As Integer, _
	length As Integer _
) As String
public:
virtual String^ GetText(
	int offset, 
	int length
) sealed
Parameters
offset (Int32)
length (Int32)
Remarks
This is the same as Text.Substring, but is more efficient because it doesn't require creating a String object for the whole document.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionoffset or length is outside the valid range.

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238