FindSegmentsContaining Method (offset)
NamespacesICSharpCode.AvalonEdit.DocumentTextSegmentCollection<(Of <(<'T>)>)>FindSegmentsContaining(Int32)
Finds all segments that contain the given offset. (StartOffset <= offset <= EndOffset) Segments are returned in the order given by GetNextSegment/GetPreviousSegment.
Declaration Syntax
C#Visual BasicVisual C++
public ReadOnlyCollection<T> FindSegmentsContaining(
	int offset
Public Function FindSegmentsContaining ( _
	offset As Integer _
) As ReadOnlyCollection(Of T)
ReadOnlyCollection<T>^ FindSegmentsContaining(
	int offset
offset (Int32)
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: