AvalonEdit
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)
public:
ReadOnlyCollection<T>^ FindSegmentsContaining(
	int offset
)
Parameters
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: 5.0.0.4238