Links
EControl Syntax Editor SDK
TRangeList Class
TRangeList = class;

ecLists

Array of sorted ranges

Topic 
Description 
The methods of the TRangeList class are listed here. 
The properties of the TRangeList class are listed here. 
 
Method 
 
virtual 
 
protected 
 
Property 
 
read only 
TRangeList Methods 
Description 
Add 
Adds new item. Returns index at which the item was inserted. 
Removes all ranges. 
Removes all ranges which ends after position APos. If CopyTo list is not nil, copies removed ranges to that list. 
Content has been changed, updates ranges upper Pos. Removes affected ranges, i.e. removes ranges that contain changed positions. 
Create new list. UnionSiblings specifies that intersected ranges should be replaced with the a range that is a union of intersected ranges. 
Deletes ranges at specified index in the list. 
Deletes ranges that intersect the bounds, returns number of deleted items 
The destructor frees all resources allocated by the current object. 
Compares two items. 
Returns range that contains specified position APos or placed after position APos. If there is no such range result value is nil. 
Returns range that contains specified position APos or placed before position APos. If there is no such range result value is nil. 
Returns range that contains specified position APos. If there is no range that contains APos, result value is nil. 
Splits range at RangeIdx index on two ranges at specified SplitPos position. 
Tries to add range if there are no intersections 
Union ranges with the [Index] and [Index + 1] returns new range index (or union result) 
TRangeList Properties 
Description 
Number of ranges in the list. 
Returns ranges at the specified index. 
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!