Table of Contents

Class RangeList

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

Represents sorted list of ranges.

public class RangeList : SortList<IRange>, IList, ICollection, IReadOnlyList<IRange>, IReadOnlyCollection<IRange>, IRangeList, ISortList<IRange>, IList<IRange>, ICollection<IRange>, IEnumerable<IRange>, IEnumerable
Inheritance
RangeList
Implements
Extension Methods

Constructors

RangeList()

Initializes a new instance of the RangeList class with default settings.

Properties

TopRange

Represents top level range for this list.

UpdateCount

Keeps track of calls to BeginUpdate and EndUpdate so that they can be nested.

Methods

Add(IRange)

Adds an object to the end of the range list.

BeginUpdate()

Prevents range list updating until calling EndUpdate method.

BlockDeleting(Rectangle)

Removes all ranges from specified region.

Clear()

Removes all ranges from RangeList.

CopyFrom(IList<IRange>)

Copies specified ranges to this RangeList.

EndUpdate()

Re-enables range list updating, that was turn of by calling BeginUpdate method.

EndUpdate(bool)

Re-enables range list updating, that was turn of by calling BeginUpdate method.

Equals(object?)

Determines whether the specified RangeList is equal to the current RangeList.

FindExactRange(Point)

Locates range at specified position and verifies whether it starts at the given position.

FindExactRange(int)

Locates range at specified line and verifies whether it starts at the given line.

FindInclusiveRange(int, bool)

Locates range containing specific line.

FindRange(Point)

Locates range at specified position.

FindRange(Point, IComparer<IRange>)
FindRange(int)

Locates range at specified line.

FindRange(int, IComparer<IRange>)
FindRangeIndex(Point, IComparer<IRange>)
FindRangeIndex(int, IComparer<IRange>)
GetExactRanges(IList<IRange>, int)

Fills list specified by Ranges parameter with all ranges that starts at the specified line.

GetHashCode()

Serves as a hash function for a particular type.

GetRanges()

Returns ranges collection in the from of IList.

GetRanges(IList<IRange>)

Fills list specified by Ranges parameter with all existing ranges.

GetRanges(IList<IRange>, Point)

Fills list specified by Ranges parameter with all ranges containing specific position.

GetRanges(IList<IRange>, Point, Point)

Fills list specified by Ranges parameter with all ranges within specified range.

GetRanges(IList<IRange>, int)
Insert(int, IRange)

Inserts a range into the range list at the specified index.

PositionChanged(int, int, int, int)

Updates specified position by DeltaX and DeltaY values for any ranges in the collection.

RemoveAt(int)

Removes the range at the specified index of the RangeList.

RemoveRange(Point)

Removes all ranges containing specified position.

RemoveRange(int)

Removes all containing specified line.

Sort()

Sorts RangeList content.

SortLevels()
Update()

Updates RangeList content.

UpdatePosition(IRange, int, int, int, int)

Updates specified position by DeltaX and DeltaY values for specific IRange.