Finds all segments that overlap with the given segment (including touching segments).
Segments are returned in the order given by GetNextSegment/GetPreviousSegment.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public ReadOnlyCollection<T> FindOverlappingSegments( int offset, int length )
Public Function FindOverlappingSegments ( _ offset As Integer, _ length As Integer _ ) As ReadOnlyCollection(Of T)
public: ReadOnlyCollection<T>^ FindOverlappingSegments( int offset, int length )
Return Value
Returns a new collection containing the results of the query.
This means it is safe to modify the TextSegmentCollection while iterating through the result collection.
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238