SectionModel.getSection

void getSection(uint position, out uint outStart, out uint outEnd)

Query the section that covers the given position. The number of items in the section can be computed by out_end - out_start.

If the position is larger than the number of items, a single range from n_items to G_MAXUINT will be returned.

Parameters

positionthe position of the item to query
outStartthe position of the first item in the section
outEndthe position of the first item not part of the section anymore.