Links
EControl Syntax Editor SDK
TRangeCollection Class
TRangeCollection = class;

ecLists

Collection of overlapped ranges. All ranges are sorted for quick search.

Topic 
Description 
The methods of the TRangeCollection class are listed here. 
The properties of the TRangeCollection class are listed here. 
 
Method 
 
virtual 
 
Property 
 
read only 
TRangeCollection Methods 
Description 
Add 
Adds range to the collection. 
Removes all ranges and all levels from the collection. 
Removes all ranges which start position is equal or greater APos. 
Creates range collection. 
Destroys collection and all owned ranges. 
Fills list of ranges which contain position Pos. First item in the list will be the range with lowest level. 
Returns list of ranges from the collection which intersect with the range specified by the StartPos and EndPos parameters. 
TRangeCollection Properties 
Description 
Number of levels in the range collection. Each level contains list of not overlapped ranges. 
Level of the ranges collection. Each level is a list of not overlapped ranges.
Do not add ranges directly to the level. It will cause incorrect searching in the collection. Instead, add range using TRangeCollection.Add method. 
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!