Table of Contents

Method GetRanges

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

GetRanges(IList<IRange>)

Fills list specified by Ranges parameter with all existing ranges.

public int GetRanges(IList<IRange> ranges)

Parameters

ranges IList<IRange>

Specifies list to fill.

Returns

int

Number of elements in the ranges collection.

GetRanges()

Returns ranges collection in the from of IList.

public IList<IRange> GetRanges()

Returns

IList<IRange>

IList representation of ranges collection.

GetRanges(IList<IRange>, Point, Point)

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

public int GetRanges(IList<IRange> ranges, Point startpoint, Point endpoint)

Parameters

ranges IList<IRange>

Specifies list to fill.

startpoint Point

Specifies start position in text coordinates.

endpoint Point

Specifies end position in text coordinates.

Returns

int

Number of elements in the ranges collection.

GetRanges(IList<IRange>, Point)

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

public int GetRanges(IList<IRange> ranges, Point point)

Parameters

ranges IList<IRange>

Specifies list to fill.

point Point

Specifies position in text coordinates.

Returns

int

Number of elements in the ranges collection.

GetRanges(IList<IRange>, int)

public int GetRanges(IList<IRange> ranges, int index)

Parameters

ranges IList<IRange>
index int

Returns

int